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

Filtering on Objects

1 Answer 81 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stefan
Top achievements
Rank 1
Stefan asked on 06 Jan 2011, 02:55 PM
I am using the standard filtering built into the GridView Control. One of the view's colums is bound to an object instead of a string.  Inside the colums the objects show correctly (because the DisplayMemberPath="Name" is properly set).

1) When the I click the filter button for that column the object types are displayed instead of the object names.
2) The avaiable options for filtering is also less than for the normal text column.  Only "Is equal to" and "Is not equal to" shows.

Must my objects implement a specific interface to play correctly with the DataGrid's filtering? Must must be done to show all the filtering options?

Thanks

1 Answer, 1 is accepted

Sort by
0
Milan
Telerik team
answered on 11 Jan 2011, 03:42 PM
Hello Stefan,

When you bind a column to a object type the grid cannot infer the correct type and as a consequence the filtering does now work correctly. What you can do is to manually set the DataType property of the respective column and all should be well. 


Best wishes,
Milan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Stefan
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or