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

GridViewComboBoxColumn filter not working

1 Answer 221 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Francisco M.
Top achievements
Rank 1
Francisco M. asked on 24 Apr 2015, 06:51 AM

Hello,

 

The filter os GridViewComboBox column not working propertly.

 This filtering by SelectedValuePath (It should filter by DisplayMemberPath).

I put the value of SelectedValuePath and it filtered correctly.

 Logically users filtered by DisplayMemberPath.

 

Solution?

 

Thanks

1 Answer, 1 is accepted

Sort by
1
Dimitrina
Telerik team
answered on 24 Apr 2015, 02:14 PM
Hi,

Have you configured GridViewComboBoxColumn with ItemsSource or ItemsSourceBinding?

If you set ItemsSource, then filtering should be already by DisplayMemberPath. It seems you have configured ItemsSourceBinding for your GridViewComboBoxColumn - in that case the values displayed in the column’s filtering control will be the values corresponding to the DataMemberBinding. If you want to have the DisplayMemberPath displayed, then you need to set FilterMemberPath to a property containing the values used as DisplayMemberPath. You can download a run-able project as an example from the SDK repository here

As a side note, to work more easily with our SDK samples you can download and configure SDK Samples Browser as described in the documentation.


You can also check the ComboBox Column article on the difference between ItemsSource and ItemsSourceBinding.

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
Francisco M.
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or