Call "Clear Filter" from code behind

11 posts, 0 answers
  1. Jingying Wu
    Jingying Wu avatar
    22 posts
    Member since:
    Jul 2009

    Posted 20 Aug 2009 Link to this post

    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,.
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Aug 2009 Link to this post

    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.
  3. Jingying Wu
    Jingying Wu avatar
    22 posts
    Member since:
    Jul 2009

    Posted 21 Aug 2009 Link to this post

    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,
  4. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 24 Aug 2009 Link to this post

    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.
  5. Jingying Wu
    Jingying Wu avatar
    22 posts
    Member since:
    Jul 2009

    Posted 24 Aug 2009 Link to this post

    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)
  6. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 27 Aug 2009 Link to this post

    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.
  7. Milan
    Admin
    Milan avatar
    1989 posts

    Posted 31 Aug 2009 Link to this post

    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.
  8. Tobias
    Tobias avatar
    28 posts
    Member since:
    Jun 2013

    Posted 27 Jun 2013 Link to this post

    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
  9. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 27 Jun 2013 Link to this post

    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 >>
  10. Tobias
    Tobias avatar
    28 posts
    Member since:
    Jun 2013

    Posted 27 Jun 2013 Link to this post

    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
  11. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 27 Jun 2013 Link to this post

    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 >>
Back to Top