Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Feb 2012
    Location
    New York, NY
    Posts
    52
    Vote Rating
    3
    roycyang is on a distinguished road

      0  

    Default Grouped Broken in Build 286

    Grouped Broken in Build 286


    It looks like upgrading to Build 286 has broken the "grouped" feature for lists. I go into my Store and it used to have:

    group
    groupDir
    groupField

    Now "group" is gone. I cannot add "group" because it requires a function. The only way I can successfully get grouped to work is after instantiation, I add:

    Code:
    self.getAuditList().setGrouped(true);
    self.getAuditList().getStore().setGrouper(function(record){
        console.log(record.data.date);
        if (record && record.data.date) {
            return record.get('date').toDateString();
        } else {
            return '';
        }
    });

  2. #2
    Sencha - Architect Dev Team jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    556
    Vote Rating
    19
    jjohnston will become famous soon enough jjohnston will become famous soon enough

      0  

    Default


    I'm guessing you mean "grouper" instead of "group", as I don't recall there being a "group" property.

    In build 286 we have enhanced the configuration of groupers so that a Grouper is a separate toolbox item, which you can add by dragging it onto a Store. It can then have its properties edited using the config editor for convenience. If you want to supply a custom function like you used to, simply put it in the groupFn config on the Grouper instance.
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

Thread Participants: 1