vikaskapoor
15 Jul 2009, 12:45 AM
Hi I am using RowExpander.js in my grid.
But it is not working.
I am getting body is undefined
Refer the snapshot...
While debugging i found that in RowExpander.js, in expandRow method, body is coming as undefined.
expandRow : function(row){
if(typeof row == 'number'){
row = this.grid.view.getRow(row);
}
var record = this.grid.store.getAt(row.rowIndex);
var body = Ext.DomQuery.selectNode('tr:nth(2) div.x-grid3-row-body', row);
if(this.beforeExpand(record, body, row.rowIndex)){
this.state[record.id] = true;
Ext.fly(row).replaceClass('x-grid3-row-collapsed', 'x-grid3-row-expanded');
this.fireEvent('expand', this, record, body, row.rowIndex);
}
},but on doing refresh on the page it is working fine and now the body comes as [object HTMLDivElement]
But it is not working.
I am getting body is undefined
Refer the snapshot...
While debugging i found that in RowExpander.js, in expandRow method, body is coming as undefined.
expandRow : function(row){
if(typeof row == 'number'){
row = this.grid.view.getRow(row);
}
var record = this.grid.store.getAt(row.rowIndex);
var body = Ext.DomQuery.selectNode('tr:nth(2) div.x-grid3-row-body', row);
if(this.beforeExpand(record, body, row.rowIndex)){
this.state[record.id] = true;
Ext.fly(row).replaceClass('x-grid3-row-collapsed', 'x-grid3-row-expanded');
this.fireEvent('expand', this, record, body, row.rowIndex);
}
},but on doing refresh on the page it is working fine and now the body comes as [object HTMLDivElement]