RadFilter - Clear/Remove Filter Items programmatically

4 posts, 0 answers
  1. Mahipal
    Mahipal avatar
    13 posts
    Member since:
    Sep 2008

    Posted 25 Mar 2011 Link to this post

    Hi,

    How can I clear the filter items in the RadFilter programmatically? I want to be able to do programmatically that we can do by clicking "X" to remove a filter item from the RadFilter. Is this possible? If so, can you provide me an example to do this?

    I want to remove all filter items and not just one item. (reset to the default RadFilter view with no filter expressions)

    Thanks
    Mahipal
  2. Daniel
    Admin
    Daniel avatar
    4943 posts

    Posted 31 Mar 2011 Link to this post

    Hello Mahipal,

    Please try the following code-snippet:
    RadFilter1.RootGroup.Expressions.Clear();
    RadFilter1.RecreateControl();

    Regards,
    Daniel
    the Telerik team
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Antonio
    Antonio avatar
    3 posts
    Member since:
    Mar 2012

    Posted 05 Jul 2012 Link to this post

    i want to remove one group item how can i do?
  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Jul 2012 Link to this post

    Hello Antonio,

    In case you need to clear the filter for a specific column review the forum thread below:
    http://www.telerik.com/community/forums/aspnet-ajax/grid/clear-filter-expresssion-in-radgrid.aspx

    Regards,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top