PDA

View Full Version : [CLOSED] Grouped Broken in Build 286



roycyang
16 Feb 2012, 11:32 AM
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:



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 '';
}
});

jjohnston
16 Feb 2012, 4:07 PM
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.