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

Enable Filter functionality on a columns binded with a converter.

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 19 May 2011, 04:18 PM
Hello, I have the following scenario, where I need some columns where its displayed data comes from more than one property from the entity associated to the ItemSource of the grid view.

I have a Documents collection, and inside this, one document have two properties, CreationDate and CreatorUser, and I need to have this two pieces of information into one single column named "Creation" then, I used for this a converter that from the row data item takes this two properties and concatenates the string resulting from the two, the problem is that for this particular column there is no Filter icon, so the user is not able to filter by the information displayed in this column.

Is is possible to force the gridview to allow filter?

Thanks.

Juan

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 20 May 2011, 07:28 AM
Hi Juan,

Filtering of columns in RadGridView is not allowed when they cannot determine an appropriate DataType. To enable it you may try setting it explicitly through the DataType property of GridViewBoundColumnBase. 

Best wishes,
Ivan Ivanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Juan
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or