PDA

View Full Version : [FIXED-EXTJSIV-1336][B3] Grid with 'grouping' feature & RowExpander doesn't work



vadimv
19 Apr 2011, 6:33 AM
When Ext.ux.RowExpander is used with other grid features than in Ext.ux.RowExpander the grid's features are re-declared and are wasted those features declared in Grid.
A possible raw solution is to change in Ext.ux.RowExpander the code:

grid.features = [{
ftype: 'rowbody',
columnId: this.getHeaderId(),
recordsExpanded: this.recordsExpanded,
rowBodyHiddenCls: this.rowBodyHiddenCls,
rowCollapsedCls: this.rowCollapsedCls,
getAdditionalData: this.getRowBodyFeatureData,
getRowBodyContents: function(data) {
return rowBodyTpl.applyTemplate(data);
}
},{
ftype: 'rowwrap'
}];

with

var rowExpFeatures = [{
ftype: 'rowbody',
columnId: this.getHeaderId(),
recordsExpanded: this.recordsExpanded,
rowBodyHiddenCls: this.rowBodyHiddenCls,
rowCollapsedCls: this.rowCollapsedCls,
getAdditionalData: this.getRowBodyFeatureData,
getRowBodyContents: function(data) {
return rowBodyTpl.applyTemplate(data);
}
},{
ftype: 'rowwrap'
}];

if(grid.features) {
var tempFeatures = grid.features;
grid.features = rowExpFeatures.concat(tempFeatures);
}
else grid.features = rowExpFeatures;

evant
19 Apr 2011, 6:57 AM
Thanks for the report, this will be fixed in the next release.