[CLOSED] Replacement for store.groupby

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [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:

                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 5:06 PM. Reason: no feedback from the user in 7+ days

Similar Threads

  1. [CLOSED] hideTabStripItem replacement
    By Z in forum 3.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 26, 2015, 1:25 PM
  2. [CLOSED] Store client side .getSortState() replacement
    By vadym.f in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: May 01, 2013, 2:37 PM
  3. [CLOSED] What is the replacement of Save event of store in ext js 4.0
    By advBackOffice in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 06, 2012, 1:16 PM
  4. Replies: 1
    Last Post: Aug 21, 2012, 7:37 AM
  5. Replies: 6
    Last Post: May 26, 2009, 3:03 PM

Tags for this Thread

Posting Permissions