This is a migrated thread and some comments may be shown as answers.

Search As you Type on Combo Box

4 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Eyal
Top achievements
Rank 1
Eyal asked on 03 Sep 2012, 02:41 PM
Search as you type example, after some minor changes (change from GridViewDataColumn to GridViewBoundColumnBase type), filters combobox columns according to their keys, and not their values (not according to their display name, but their underlying values).

How do I set the Filter to filter accordingly ?

Oh, just notices i posted this on the wrong forum, can administrator please move this to WPF ?

4 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 04 Sep 2012, 08:55 AM
Hello Avishay,

Unfortunately in this case, the default behavior that is shown in our examples will prove to be inefficient. 
To filter the properties with a ComboBoxColumn, you will have to create a generic filter descriptor and set the filtering expression manually. 

Let me know if you need any further help with this. 

All the best,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Eyal
Top achievements
Rank 1
answered on 04 Sep 2012, 09:06 AM
Is it possible to get an example code for creating such a generic filter logic ?
0
Eyal
Top achievements
Rank 1
answered on 06 Sep 2012, 05:41 AM
Anything ?
0
Nick
Telerik team
answered on 06 Sep 2012, 03:31 PM
Hello Avishay,

The Generic filter descriptor can be created as: 

var fd = filterDescriptor as FilterDescriptor<Item>;
 
fd.FilteringExpression = item => (CONDITION for item)

Where Item is the objects that are being loaded in the GridView.

Hope this helps!  Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Eyal
Top achievements
Rank 1
Answers by
Nick
Telerik team
Eyal
Top achievements
Rank 1
Share this question
or