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

Clear filter in code behind

2 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
John Davis
Top achievements
Rank 2
John Davis asked on 08 Jun 2010, 03:41 AM

I have a need similar to this one:
http://www.telerik.com/community/forums/aspnet-ajax/grid/set-customfiltercolumn-currentfilterfunction.aspx

I have a grid with filter columns using the default options (less a few I deleted in code behind).
Suppose the user selects a filter option such as "greater than".  Afterward, if the user clears the filter box and then clicks the filter button, the user expects to invoke the "no filter" option.  But it does not work.  Instead the user must click the "no filter" option.
How can we cause the "no filter" option to be invoked if the user clears the filter box and then clicks the filter button?

Steve

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 11 Jun 2010, 06:58 AM
Hello John,

Attached is a small sample implementing the requirement in question.

Greetings,
Tsvetoslav
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
John Davis
Top achievements
Rank 2
answered on 11 Jun 2010, 09:16 AM
Tsvetoslav:
Thank you for this solution. It works perfectly.  Probably it will be useful for many people because it implements filter behavior that users will expect.
Steve
Tags
Grid
Asked by
John Davis
Top achievements
Rank 2
Answers by
Tsvetoslav
Telerik team
John Davis
Top achievements
Rank 2
Share this question
or