Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

If you sort the grid, you lost the dynamical rowBodyTpl #1

@javamaniac

Description

@javamaniac

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions