Extjs Grid中RowExpander跨列BUG

bug:

经过跟踪,发现是GRID中colSpan问题。注:extjs版本4.22,不知后续版本是否存在此问题

 

解决办法:

Ext.override(Ext.grid.plugin.RowExpander, {
    getRowBodyFeatureData: function (record, idx, rowValues) {
        var me = this
        me.self.prototype.setupRowData.apply(me, arguments);

        if (!me.grid.ownerLockable) {
            rowValues.rowBodyColspan = rowValues.rowBodyColspan;
        }
        rowValues.rowBody = me.getRowBodyContents(record);
        rowValues.rowBodyCls = me.recordsExpanded[record.internalId] ? '' : me.rowBodyHiddenCls;
    }
});

  

解决后:

 

 

posted @ 2013-07-01 23:14  yn.ymf  阅读(1691)  评论(3编辑  收藏  举报