-
21 Jul 2011 10:03 AM #1
[FNR] Grid sort state not apllied
[FNR] Grid sort state not apllied
Hi,
we have a problem with applying the saved sort state of our grid, which uses clientside paging with a PagingModelMemoryProxy and BasePagingLoader.
In Grid.doApplyStoreState() there is this line:
I think this should be:Code:if (store.getLoader() == null && sortField != null)...
Or just skip the loader check, because in ListStore.sort() there is a check for the loader already?Code:if ((store.getLoader() == null || !store.getLoader().isRemoteSort()) && sortField != null)...
Kind regards,
Stephan
-
21 Jul 2011 10:23 AM #2
This is going to be a braking change.Or just skip the loader check, because in ListStore.sort() there is a check for the loader already?
However i will add the check if its not using remote sort as this is realy missing
-
21 Jul 2011 10:24 AM #3
Code:Index: user/src/com/extjs/gxt/ui/client/widget/grid/Grid.java =================================================================== --- user/src/com/extjs/gxt/ui/client/widget/grid/Grid.java (revision 2379) +++ user/src/com/extjs/gxt/ui/client/widget/grid/Grid.java (working copy) @@ -746,7 +746,7 @@ protected void doApplyStoreState(Map<String, Object> state) { String sortField = (String) state.get("sortField"); - if (store.getLoader() == null && sortField != null) { + if ((store.getLoader() == null || !store.getLoader().isRemoteSort()) && sortField != null) { String sortDir = (String) state.get("sortDir"); SortDir dir = SortDir.findDir(sortDir); store.sort(sortField, dir);
-
21 Jul 2011 10:34 AM #4
Fixed in SVN as of revision 2415
-
22 Jul 2011 12:25 AM #5
That was fast, thanks!

Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote