Jun 13, 2018, 6:02 PM
[CLOSED] Replacement for store.groupby
I'm updating some legacy code originally written with a much older version of Ext.Net.
In one of the gridpanels in use, there is a set of buttons for altering the way that the displayed data is grouped (allowing for the user to pick one of 5 columns to group by, and hiding the ones not used).
The javascript ode to accomplish the change in grouping is a switch-case structured as follows:
What's the correct way to dynamically change the column that a store is grouped by with the current version of Ext.Net?
In one of the gridpanels in use, there is a set of buttons for altering the way that the displayed data is grouped (allowing for the user to pick one of 5 columns to group by, and hiding the ones not used).
The javascript ode to accomplish the change in grouping is a switch-case structured as follows:
switch (index) {
case 0: // Column1
App.StoreName.groupBy("Column1", true);
App.GridPanelName.getColumnModel().setHidden(0, true);
App.GridPanelName.getColumnModel().setHidden(1, false);
App.GridPanelName.getColumnModel().setHidden(2, true);
App.GridPanelName.getColumnModel().setHidden(3, true);
break;
case 1: // Column2
App.StoreName.groupBy("Column2", true);
App.GridPanelName.getColumnModel().setHidden(0, false);
App.GridPanelName.getColumnModel().setHidden(1, true);
App.GridPanelName.getColumnModel().setHidden(2, true);
App.GridPanelName.getColumnModel().setHidden(3, true);
break;
...
}
It appears that there is no longer a "groupBy" method that applies that way. The examples site shows some examples of grouping, but not of changing which column the gridpanel or store are grouped by.What's the correct way to dynamically change the column that a store is grouped by with the current version of Ext.Net?
Last edited by fabricio.murta; Oct 19, 2018 at 6:06 PM.
Reason: no feedback from the user in 7+ days