Fabian
asked on 11 Oct 2022, 02:10 PM
| edited on 11 Oct 2022, 02:12 PM
We have a RadGridView which contains a combobox, bound to a collection of custom objects.
At the moment the full text search does not take the combobox items into consideration when searching.
How can i tell the fulltextsearch to search in the title of the, in the combobox chosen, object?
2 Answers, 1 is accepted
0
Stenly
Telerik team
answered on 14 Oct 2022, 01:42 PM
Hello Fabian,
Currently, the GridViewComboBoxColumn column has some limitations regarding the search functionality of the RadGridView control. However, we have an open feature request in our feedback portal to improve the column for this scenario. What I could suggest would be to vote for it, as well as follow it, to get notified via e-mail when its status gets changed. The feature request can be found at the following link:
On a side note, the GridViewComboBoxColumn is partially supported when it comes to searching, however, the underlying data will be searched, rather than the displayed one. This is because a new FilterDescriptor is created once a search is performed, which will use the default filter functionality of the control that is to filter the underlying data object, instead of the displayed value.
With this being said, I hope the provided information will be of help to you.
Regards,
Stenly
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
answered on 19 Oct 2022, 08:20 AM
| edited on 19 Oct 2022, 12:26 PM
Hello Stenly,
thank you for the quick, extensive answer.
"which will use the default filter functionality of the control that is to filter the underlying data object, instead of the displayed value."
Does that mean we could implement a DefaultComparer for the class to make this work?
Friendly regards,
Fabian
Martin Ivanov
Telerik team
commented on 21 Oct 2022, 01:19 PM
This means that the search filter uses the value bound to the DataMemberBinding of the column and not the display value shown in the cell. In some scenarios these two may match.
About the DefaultComparer implementation, can you tell me what do you refer to with this? Also, can you send over your GridView and ComboBox setup?