PDA

View Full Version : [CLOSED] Grouping grid breaks when grouping store post-render, collapsing groups



anselmtmcclain
30 May 2014, 9:22 AM
Ext version tested: Ext 5.0.0.736

Browser versions tested against: Chrome via Sencha Fiddle

DOCTYPE tested against: Strict

Description:

Take a grid with the grouping feature and an ungrouped store, then group the store programmatically after the initial load. Grid appears to group fine and rendering looks normal, but if you collapse a group near the top, all subsequent rows will have their selection behavior badly broken. Ungrouping the store leaves the grid in an even worse state.

Steps to reproduce the problem:

Fiddle @ https://fiddle.sencha.com/#fiddle/684

(https://fiddle.sencha.com/#fiddle/684Click)Click "group by state" button in toolbar. Collapse the first group (State:CT). Attempt to select any of the remaining visible rows. Row selection will be "off" and not work.

Then click "clear grouping" button - rows will be missing, corrupted.

Also attempted with nightly build, but grouping did not work at all. With grid panel documentation broken online, I can only assume something is going on with the grid in active development.

mitchellsimoens
30 May 2014, 9:56 AM
Thanks for the report! I have opened a bug in our bug tracker.

anselmtmcclain
19 Jun 2014, 11:10 AM
Update against the GA release of the framework:Behavior is still broken, but broken differently.

Now attempts to regroup the store programmatically via store.group() will re-order the records in the grid, but not actually group the grid. Can be seen in the original fiddle linked above.

In a slightly modified fiddle - https://fiddle.sencha.com/#fiddle/6r4 - you can see an alternate bug. Here I've set a groupField on the store from the start (which might not be desired, but still). The grid renders as grouped and the grouping buttons now work. However, the Clear Grouping button (store.clearGrouping()) fails very badly, leaving the grid blank.

So two different bugs now around store and grid grouping. Based on other threads in the forums, it appears there is some work to be done on these core features. The grids and their capabilities have always been the start of ExtJS for us, so hopefully can be fixed soon!