Results 1 to 2 of 2

Thread: [CLOSED][4.0.0] Store constructor needs me.groupers, me.groupField, me.groupDir

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member's Avatar
    Join Date
    Jul 2007
    Austin, TX

    Default [CLOSED][4.0.0] Store constructor needs me.groupers, me.groupField, me.groupDir

    The constructor does not check for existing me.groupers, me.groupField or me.groupDir properties to see if grouping has been pre-defined on the store. It only looks for grouping information in the config object passed to the constructor.

    Since instantiates the when the app first loads (I have the store listed in my controller) there is no way to pass grouping information to the constructor without a workaround (at the very bottom).

    Around line 327:

    PHP Code:
    groupers config.groupers
    should be:

    PHP Code:
    groupers config.groupers || me.groupers
    Around line 383:

    PHP Code:
    if (!groupers && config.groupField) {
    groupers = [{
    property config.groupField,

    Should be:

    PHP Code:
    if (!groupers && (config.groupField || me.groupField)) {
    groupers = [{
    property config.groupField || me.groupField,
    directionconfig.groupDir || me.groupDir

    As a workaround I overrode my subclass constructor and applied the grouping properties to the config:

    PHP Code:
    constructor: function(config) {
    Ext.applyIf(config, { groupFieldthis.groupField });

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    I believe this should be resolved as of 4.0.1.

    From the release notes: [EXTJSIV-1813] - Store Can't read grouping info when specified on the class definition
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts