PDA

View Full Version : [OPEN-69][3.1.0] GroupingView does not refresh when GroupingStore.groupBy() is called



Tom23
30 Dec 2009, 2:51 AM
Steps to reproduce:


Open http://www.extjs.com/deploy/ext-3.1.0/examples/grid/grouping.html
Enter this in Firebug:

var grid = Ext.ComponentMgr.all.items[1];
grid.store.clearGrouping();
grid.store.groupBy('industry');


Experienced result:

GroupingView does refresh when calling clearGrouping()
GroupingView does not refresh when calling groupBy()


Expected result:

GroupingView should refresh in both cases (or never).



Note:
It used to work in Ext 3.0.x
http://www.extjs.com/deploy/ext-3.0.0/examples/grid/grouping.html

Tom23
30 Dec 2009, 3:05 AM
I found that the problem is caused by

http://www.extjs.com/forum/showthread.php?p=408618

The line

this.enableGrouping = (this.enableGrouping === false) ? false : !!groupField;
in Ext.grid.GroupingView.doRender() will irreversibly set this.enableGrouping = false when store.clearGrouping() is called.

aconran
30 Dec 2009, 11:09 AM
Thanks for the report and we apologize for the regression. I've opened this ticket.