Ux.grid.plugin.AssociationRowExpander
Ux.grid.plugin.AssociationRowExpander copied to clipboard
If you sort the grid, you lost the dynamical rowBodyTpl
As you can see in this fiddle, https://fiddle.sencha.com/#fiddle/5r8 the rowBodyTpl is dynamically rendered.
But if you sort the grid, you lost the dynamical rowBodyTpl and the default rowBodyTpl is rendered.
To fix this issue, I think we must override getRowBodyFeatureData like this :
getRowBodyFeatureData: function(record, idx, rowValues) {
var me = this;
me.self.prototype.setupRowData.apply(me, arguments);
rowValues.rowBody = me.getRowBodyContents(record);
rowValues.rowBodyCls = me.recordsExpanded[record.internalId] ? '' : me.rowBodyHiddenCls;
// add this block
if (this.recordsExpanded[record.internalId]) {
// update the template
// or recall
this.showCmp(row, record);
}
}
I would like to have your solution to this problem.
Thanks
Dominic