-
4 Apr 2013 8:50 AM #11
i came with a better approach:
changing the listener from the form panel to the store, like this:
now its working fineCode:var storeOpcoesAcesso = Ext.create('Ext.data.JsonStore', { ... groupField: 'descricao', listeners: { load: function(este, opts) { groupingFeature.collapseAll(); } }, ... });
-
5 Apr 2013 3:17 AM #12
-
15 Apr 2013 11:17 PM #13
These "fixes" do not seem very efficient at all. I mean listening and collapsing after the store has loaded the data seems incredibly inefficient especially in grouping grids with 20-30 groups.
The only real fix should be that they are initially collapsed when rendered after adding them to the store.
I really wonder why this was not fixed since it is an old issue.
In 4.1.1 I used this to fix this problem
And similiar to then expand single groups which had its expansion state saved in a session cookie.Code:grid.getView().on({ 'beforerefresh': function(view,eOpts) { return false; }, single: true });
Doesn't work in 4.2 anymore however. Does nothing.
Maybe someone should report this bug in the 4.2 forum.
You found a bug! We've classified it as
EXTJSIV-7082
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote