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

RadFilter - Clear/Remove Filter Items programmatically

3 Answers 492 Views
Filter
This is a migrated thread and some comments may be shown as answers.
Mahipal
Top achievements
Rank 1
Mahipal asked on 25 Mar 2011, 03:54 PM
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

3 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 31 Mar 2011, 08:17 AM
Hello Mahipal,

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

Regards,
Daniel
the Telerik team
0
Antonio
Top achievements
Rank 1
answered on 05 Jul 2012, 01:46 PM
i want to remove one group item how can i do?
0
Maria Ilieva
Telerik team
answered on 10 Jul 2012, 11:08 AM
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.
Kasim
Top achievements
Rank 2
commented on 11 Jan 2023, 03:56 AM

Hi Maria,

The link you shared above in your response is not working anymore. Can you please point me to the correct link?

Tags
Filter
Asked by
Mahipal
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Antonio
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or