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

Filtering Dynamic RadGrid

1 Answer 252 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Dheera
Top achievements
Rank 1
Dheera asked on 08 Sep 2015, 06:54 PM

I am trying to add Excel like filtering for a dynamic RadGrid. I found this example that shows filtering with client-side binding: http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx. However, I do not have GridBoundColumns because my RadGrid is dynamic. How do I go about adding Excel like filtering if I do not know the columns beforehand? Please show an example.

Thanks

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Sep 2015, 02:53 PM
Hello Dheera,

You can use the ColumnCreated event handler provided by RadGrid to set the properties of the auto-generated columns:
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/columns/working-with-autogenerated-columns

Alternatively, you can implement a custom FilterTemplate as demonstrated in the RadGridFilterTemplateProgrammatic.zip web site provided in the following post:
http://www.telerik.com/forums/how-to-persist-dropdownlist-selected-index-and-value-on-postback-from-radgrid-filtertemplate#GW3MyQLmVEmy8XzsmrHzeQ

Hope this helps.


Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Filter
Asked by
Dheera
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or