View Full Version : [3.0.0] RowExpander possible bug when GridPanel gets destroyed.

18 Aug 2009, 12:39 PM
The following scenario is based on the portal example from ExtJS 3.0.0 release. The grid from the example is modified such as it contains the RowExpander plugin. I noticed when the grid portlet is removed by pressing the 'x' icon, the RowExpander throws an exception in its onDestroy method:

mainBody is undefined
ext-3.0.0/examples/ux/RowExpander.js Line 143I believe this happens because the GridView destroy method has already been called before the onDestroy method of the RowExapnder so the mainBody gets deleted.
The problem goes away if in the init method of RowExpander I change the listener from "destroy" to "beforedestroy" event.

Attached there is the modified portal example to test the problem.

I can reproduce this using both Firefox 3.5 and IE 8.

18 Aug 2009, 7:21 PM
This is already fixed in SVN.