sapond
30 Mar 2011, 7:59 AM
Here is the override to fix this:
//This override allows for List component to use asccociations when List.grouped=true
Ext.override(Ext.List, {
style: 'position:relative',
collectData : function() {
if (!this.grouped) {
return Ext.List.superclass.collectData.call(this, records, startIndex);
}
var results = [],
groups = this.store.getGroups(),
ln = groups.length,
children, cln, c,
group, i;
for (i = 0, ln = groups.length; i < ln; i++) {
group = groups[i];
children = group.children;
for (c = 0, cln = children.length; c < cln; c++) {
Ext.apply(children[c].data, this.prepareAssociatedData(children[c]));
children[c] = children[c].data;
}
results.push({
group: group.name,
id: this.getGroupId(group),
items: this.listItemTpl.apply(children)
});
}
return results;
}
});
//This override allows for List component to use asccociations when List.grouped=true
Ext.override(Ext.List, {
style: 'position:relative',
collectData : function() {
if (!this.grouped) {
return Ext.List.superclass.collectData.call(this, records, startIndex);
}
var results = [],
groups = this.store.getGroups(),
ln = groups.length,
children, cln, c,
group, i;
for (i = 0, ln = groups.length; i < ln; i++) {
group = groups[i];
children = group.children;
for (c = 0, cln = children.length; c < cln; c++) {
Ext.apply(children[c].data, this.prepareAssociatedData(children[c]));
children[c] = children[c].data;
}
results.push({
group: group.name,
id: this.getGroupId(group),
items: this.listItemTpl.apply(children)
});
}
return results;
}
});