PDA

View Full Version : rowexpander body undefined



stetou
12 May 2011, 6:24 AM
Hi,
I followed this example to create a grid with a rowexpander plugin
http://dev.sencha.com/deploy/ext-3.3.0/examples/grid/grid-plugins.html
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.
thanks
steve