Current filter:
                                You should refresh the page.
                                  • The drop down for field value in filter editor when FieldType = string and FilterMode = Value does not show up. I had to change the FilterMode = DisplayText for drop down.
                                    Is there any way to get the drop down without having to change the FilterMode to DisplayText. Please help, looking forward to hearing from you.
                                    I have attached the sample project to explain the scenario. Please let me know if you have more questions.

                                1 Solution

                                Creation Date Importance Sort by

                                Hi,

                                We create ComboBoxEdit for editing filter values if a column's filter mode is set to DisplayText. Otherwise, a repository item specified for a corresponding grid column is used. That is why to show a drop-down editor for editing your values, I suggest assigning RepositoryItemComboBox to your grid column. Populate this repository item with values from a grid data source.

                                Let me know if this information is helpful.

                                • Customer95462 01.14.2020

                                  Hey, Thank you for the information. This method does provide a dropdown. But the values need to be provided beforehand. I want to change the values in the dropdown as the column values change. Please could you let me know how can I do that ?

                                  Let me know if you need more information from me.

                                • Customer95462 01.14.2020

                                  Also, why is that you create a ComboBoxEdit when the field type is string ? Also, according to the current behavior it looks like Value is the default filterMode but it makes more sense to have displayText instead as the default value.
                                  Please could you provide more information on this topic.

                                • Svetlana (DevExpress Support) 01.15.2020

                                  Hi,

                                  Since your archive is empty, I cannot see how you are using FilterControl. In any case, you can populate ComboBoxEdit with values before activating this editor in the FilterControl.BeforeShowValueEditor event handler. Refer to the event description where you will find a useful example.

                                  To learn how to traverse through grid rows and access cell values, refer to the Traversing Rows and Access Grid Cells in Code help articles.

                                  Regarding your last question, in various scenarios, grid columns primarily show their values as is. That is why, we are using the Value filter mode by default. We provide ComboBoxEdit for selecting filter values when the filter mode is set to DisplayText for simplicity. For instance, a display value may be a long string and it is easier to choose it instead of typing it.