We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39742
    • 29 Posts
    Hello.
    I load data on a a local grid but it doesn't the GroupigView doesn't seam to take affect.
    I defined grouping: true and indeed it instanciates a Ext.data.GroupingStore and a Ext.grid.GroupingView but nevertheless it doesn't work.
    Should I call some method after runing loadData on the store?

    I managed to use grouping in a normal grid.
    LocalGrid seams to have all methods needed but I can't figure out what's missing.
    Can someone help?
    Thanks
      • 39742
      • 29 Posts
      it seams that LocalGrid call to constructor destroys GroupingStore properties.

      In modx.grid.js line 520:
      MODx.grid.LocalGrid.superclass.constructor.call(this,config);

      Before the call the the store (this.store and config.store...i'm lost in this duplicates) has property "groupField" set.
      After the call that property is set to false

      Can someone help please?
      Has anyone been able to do grouping in a localgrid?

      Thanks
        • 39742
        • 29 Posts
        by the way...this seams to be a bug.
        I have to set "grouping" and "groupField" again after the constructor.
        Can you confirm?