[CLOSED] Loop through filters Gridpanel

Page 2 of 2 FirstFirst 12
  1. #11
    I've found the problem.

    There are two GridFilters plugins in the GridPanel.

    Running this code:
    var gridPanel = winLeaseContracten.getBody().gpLeaseContracten;
    
    gridPanel.plugins.length
    in FireFox FireBug (or any browser developer tools) you will see "2", but these two plugins are both GridFilters.

    The first one has no filters, but the second one has 20 filters.

    The GridPanel getFilterPlugin returns the first instance with no filters.

    You can get it working replacing
    gridPanel.getFilterPlugin().filters.each(function (f) { ... });
    with
    gridPanel.filters.filters.each(function (f) { ... });
    but it's just a workaround and there is, obviously, the problem - there should not be two GridFilters plugins in one GridPanel.

    Please review your code in this aspect.

    You should search something like this:
    <ext:GridPanel runat="server">
        ...
        <Plugins>
            <ext:GridFilters runat="server" />
            <ext:GridFilters runat="server" />
        </Plugins>
    </ext:GridPanel>
    Probably, you add two GridFilters in code behind. Just an assumption.
  2. #12
    Thanks Daniil. I will look into my code...

    Glad you found the problem !

    Regards,

    Martin
Page 2 of 2 FirstFirst 12

Similar Threads

  1. [CLOSED] How to clear GridPanel filters on the client?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 11
    Last Post: Jan 18, 2013, 10:33 AM
  2. Replies: 4
    Last Post: Feb 21, 2012, 5:36 PM
  3. Replies: 3
    Last Post: Jan 12, 2012, 3:26 PM
  4. [CLOSED] loop though gridpanel and update store
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 03, 2011, 8:11 AM
  5. gridpanel loop
    By maxdiable in forum 1.x Help
    Replies: 4
    Last Post: Jul 09, 2009, 9:37 AM

Posting Permissions