PDA

View Full Version : Adding/Removing Grids in a Tab Panel



tomhoag
24 Mar 2010, 6:15 AM
I've got a tab panel that I'm dynamically adding and removing items -- specifically grid panels.

I'm encountering an 'this.mainBody.dom is undefined' error after I remove all items from the tab panel and then add new items to the tab panel.

I've posted an example of the code that reproduces the error here: http://cluebucket.com/dev/foo/test.html

I suspect the problem is that some processing on the removed item (a grid panel) takes place after its removal but cannot pin down what exactly is happening.

Any insight/help is very much appreciated.

thanks

tom