Filtering Dynamic RadGrid

2 posts, 0 answers
  1. Dheera
    Dheera avatar
    2 posts
    Member since:
    Apr 2015

    Posted 08 Sep 2015 Link to this post

    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

  2. Eyup
    Admin
    Eyup avatar
    3007 posts

    Posted 10 Sep 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top