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

[Solved] setting custom filtering

1 Answer 141 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jaanek Liiskmaa
Top achievements
Rank 1
Jaanek Liiskmaa asked on 14 Jan 2010, 12:16 PM
Could it be possible to change filtering template on specific columns server-side on autogenerated columns?
I use radgrid in a composite server control. i have a custom filter column extended from GridBoundColumn. I'd like to replace default filter template (textbox and a button) with my own on specific columns.
As i can see from your examples, this can be set declaratively or when the column autogeneration is false on pageload event. Should I override some method when the default filters are applied to the columns?

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 19 Jan 2010, 03:55 PM
Hi Jaanek,

As you mentioned that you have already a column inheriting from GridBoundColumn with the desired filter controls added to it, I would suggest you to set the AutoGenerateColumns property of the grid to false, and add your own columns in the grid columns collection.
Another option is to handle the grid ItemCreated/ItemDataBound event and the replace the default filter controls in the GridFilteringItem with custom ones.

Additionally, I suggest that you look at this online demo illustrating how to use custom filtering columns in RadGrid.

I hope this helps.

Best wishes,
Iana
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
Jaanek Liiskmaa
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or