View Full Version : rowexpander body undefined

12 May 2011, 6:24 AM
I followed this example to create a grid with a rowexpander plugin
The rows don't expand, i get this
body is undefined
../extjs/ext-3.3.1/examples/ux/RowExpander.js (http://geo.inspq.rtss.qc.ca/extjs/ext-3.3.1/examples/ux/RowExpander.js)
Line 196
Here is the line
body.innerHTML = this.getBodyContent(record, rowIndex);

My grid is not rendered in document.body, it is in a tabpanel.
I tried to create the grid in the body onload event, same result.

It seems that the grids render too early but I don't understand why since it is in the ext.onReady function.
If i activate the last tab when loading and then manually activate the tab containing the grid, the rows expand......
Please help I have no idea anymore.