PDA

View Full Version : [CLOSED] GridPanel StripeRows issue with RowExpander



iansriley
May 22, 2014, 6:23 PM
Hi ,

I have an issue with GridPanel StripeRows="true" in Ext2.5, Since i having a RowExpander plugin in my GridPanel StripeRows (Alternate row) is not affecting like other GridPanel where RowExpander is not added.
I did research on Ext forums that GetRowClass has been overridden by RowExpander plugin.
and i overridden the Row Expander Code as like below but did not find any luck .

Ext.grid.RowExpander.override({
getRowClass: function (record, rowIndex, p, ds) {
p.cols = p.cols - 1;
var content = this.bodyContent[record.id];


if (!content && !this.lazyRender) {
content = this.getBodyContent(record, rowIndex);
}


if (content) {
p.body = content;
}


return this.state[record.id] ? "x-grid-wrap-row" : "x-grid-row-collapsed";
}
});

Please help me in solving this issue. Thanks in advance.

Daniil
May 23, 2014, 5:42 AM
Hi @iansriley,

It is mentioned in this example.
http://examples2.ext.net/#/GridPanel/RowExpander/Dynamic_GridPanels/

1. No horizontal lines and no stripeRows effect in nested GridPanels