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

[Solved] Access "Clear Filter" button thru code

2 Answers 61 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Reden
Top achievements
Rank 1
Reden asked on 24 Jun 2009, 02:50 PM
Is there a way to determine thru code if the "Clear Filter" button is clicked once when the filter dialog box is shown?  I'm trying to add special code to react when the "Clear Filter" button is clicked.  I was able to do this in a way in the RadGridView_Filtering event, but the event only fires if the "Clear Filter" button is clicked twiced, not once.  Any help is greatly appreciated.

Thank you,
Reden

2 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 25 Jun 2009, 07:24 AM
Hi Reden,

I'm attaching a sample project which illustrates how to achieve this. Hope you will find it useful.

All the best,
Stefan Dobrev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Reden
Top achievements
Rank 1
answered on 26 Jun 2009, 07:35 PM
The solution you've sent works great.  It helped me accomplish what I'm trying to code.

Just a suggestion for future release:  Maybe a hook named OnClearFilterClicked event that developers can override to write special code.

Thanks again,
Reden
Tags
GridView
Asked by
Reden
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Reden
Top achievements
Rank 1
Share this question
or