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

Call "Clear Filter" from code behind

10 Answers 180 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jingying Wu
Top achievements
Rank 1
Jingying Wu asked on 20 Aug 2009, 11:34 PM
How do i clear all the filters in the grid?
I'm creating a button (clear filters) and i would like to clear all filters upon this button click,.

10 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 21 Aug 2009, 06:11 AM
Hello Jingying Wu,

You can clear grid FilterDescriptors.

All the best,
Vlad
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
Jingying Wu
Top achievements
Rank 1
answered on 21 Aug 2009, 07:05 PM
I tried that already and it simply clears out the entire grid data.
I just opened a ticket (Your ticket ID is : 237010 ) with the screenshots, so that you can see what i'm seeing.
thanks,
0
Milan
Telerik team
answered on 24 Aug 2009, 12:52 PM
Hi Jingying Wu,

I cannot reproduce the problem that you are describing in neither 2009.1.526 nor 2009.2.701. I have attached two project (526 and 701) where you can find a button that clears the filtering without side effects.

The only possible cause of the data loss that you are describing is if the FieldDescriptors collection is cleared instead of the FilterDescriptors one.

Since we were unable to reproduce the problem would you be so kind to send us an application which can be used to simulate the data loss?

Sincerely yours,
Milan
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
Jingying Wu
Top achievements
Rank 1
answered on 24 Aug 2009, 07:10 PM
I'm using 2009.1.526.
I can repro the same issue in your attached application (clearfilter526.zip)

Repro steps:
1) Click Filter on Subject by checking (Cats are cool)
2) See that it's filtered to show only "Cats are cool"
3) Click button (Clear Filter)
4) Now Filter on Subject by checking (Mice are cool). (Uncheck all others)

Expected Results:
Filter works on Mice are cool

Actual Results:
Filter no longer works after clicking (Clear Filter)
0
Milan
Telerik team
answered on 27 Aug 2009, 03:20 PM
Hi Jingying Wu,

We are already working on a solution and we will notify you once it is ready.

Thanks for your feedback and patience.

Sincerely yours,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Milan
Telerik team
answered on 31 Aug 2009, 04:28 PM
Hello Jingying Wu,

We have fixed the issue and we could send you a custom build. Unfortunately the fix is only available for our latest version 2009.2.812. If you open a support ticket we can send you our lates build that should take care of the problem.

Thanks for reporting the issue, your Telerik points have been updated.

Greetings,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tobias
Top achievements
Rank 1
answered on 27 Jun 2013, 07:58 AM
Hi,
is it possible that I have the same issue in a current control build?

Scenario:
1. I have a grid with  the default filtering
2. I have a 'clear filter' button, which should reset all filters
3. After a click on the button, the filter indicator is now grey (aka. 0 filters set)
4. If I open the column filter dialog, the value by 'contains' is still set.

Do you have any idea how to 'fix' it?

Thanks!

- Tobias
0
Rossen Hristov
Telerik team
answered on 27 Jun 2013, 08:04 AM
Hello,

Please, read this article. The section is called "Clearing Multiple (All) Column Filters"

Regards,
Rossen Hristov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Tobias
Top achievements
Rank 1
answered on 27 Jun 2013, 08:05 AM
Hi,
the solution was easier and faster than expected. 
For everbody who has this problem: http://www.telerik.com/community/forums/silverlight/gridview/clear-filter-not-working-properly.aspx

Thanks for your fast reponse!

- Tobias
0
Rossen Hristov
Telerik team
answered on 27 Jun 2013, 08:12 AM
Hello,

In fact, this is not a problem -- it is not reading the documentation.

For everyone having a problem the documentation is a very good to place to start.

Regards,
Rossen Hristov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Jingying Wu
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jingying Wu
Top achievements
Rank 1
Milan
Telerik team
Tobias
Top achievements
Rank 1
Rossen Hristov
Telerik team
Share this question
or