Ux.grid.plugin.AssociationRowExpander icon indicating copy to clipboard operation
Ux.grid.plugin.AssociationRowExpander copied to clipboard

If you sort the grid, you lost the dynamical rowBodyTpl

Open javamaniac opened this issue 11 years ago • 0 comments

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

javamaniac avatar May 14 '14 19:05 javamaniac