Filter icon is not removed after clearing filter in GridPanel

  1. #1

    Filter icon is not removed after clearing filter in GridPanel

    Hi,

    we are using a filter in our grid panel, but after clearing the filter, the filter icon is not removed.

    Click image for larger version. 

Name:	FilterIcon1.jpg 
Views:	61 
Size:	50.3 KB 
ID:	25369
    Click image for larger version. 

Name:	FilterIcon2.jpg 
Views:	61 
Size:	48.7 KB 
ID:	25370

    This is our clear filter function:


        var clearFilter = function()
        {
            //var gridFilterHeader = %= GridPanelFilterHeader.ClientID %>;
            var store = <%=stoow_CheckPoint_Ablesedaten.ClientID %>;
            var gridfilter = <%=GridFilters1.ClientID %>
            //gridfilter.clearFilters();
            store.clearFilter();
        }

    How can we remove the filter icon when clearing the filter?

    Thanks,
    Arthur Linhart
  2. #2
    Hello Arthur!

    You can clear filters straight in the store, as you're doing, but the store can't tell what uses it. In fact, a single store can be shared among different components, and "copies" of the stores can be created when a same store shares data and not filters/ordering.

    In your case, you just should follow the same path you set the filters to undo them: from the grid. The grid filters plug in exposes some facilities to allow this programmatically and an example doing exactly what you want is this:
    - GridPanel > Plugins > GridFilters_Local

    Hope this helps!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 8
    Last Post: Jun 05, 2016, 7:10 PM
  2. Replies: 9
    Last Post: Aug 11, 2015, 11:52 AM
  3. Replies: 0
    Last Post: Apr 30, 2015, 6:37 PM
  4. Replies: 7
    Last Post: Mar 12, 2013, 8:15 AM
  5. Replies: 2
    Last Post: May 01, 2012, 4:57 PM

Tags for this Thread

Posting Permissions