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

[Solved] Filtering using a diferent field than DataField

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 29 Sep 2009, 05:59 PM
Dear All,

Is there a simple way of filtering the GridBoundColumn over a diferent field than the one defined in the DataField property. I am passing quite complex HTML to the DataField which in the end is being rendered to the user as a simple text with some extra functionality. I would like to be able to filter against this text value instead agains the complex HTML. I imagine the GetFilterDataField() of the GridBoundColumn does just that? I was trying to override the GridBoundColumn but then I receive the "Cannot create column with the specified type name" error.

Regards,
Adam

1 Answer, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 01 Oct 2009, 02:32 PM
Hi Adam,

In order to achieve your goal I suggest you implement custom filtering. Please find more information in the following articles:
Custom filter options with handling
Custom option for filtering (FilterListOptions -> VaryByDataTypeAllowCustom)

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Adam
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Share this question
or