Apr 27, 2012, 11:35 AM
I've found the problem.
There are two GridFilters plugins in the GridPanel.
Running this code:
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
Please review your code in this aspect.
You should search something like this:
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) { ... });
withgridPanel.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.