PDA

View Full Version : Ext.form.FormPanel removeAll not working



wickedsheep
10 Jan 2011, 3:00 PM
Hey guys,

has anyone had a similar problem - I cant get the remove || removeAll method to work on FormPanel items.

Here's the sample code: http://pastebin.com/Z7rQafBL

Edit: I'm using Ext 3.3.1

wickedsheep
11 Jan 2011, 3:43 AM
Bump

Condor
11 Jan 2011, 6:22 AM
You can't remove items in the show event. The show event is part of the form rendering and it will probably break if you remove items during rendering.

I recommend specifying a 'delay', e.g.

_pnl.on('show', function() {...}, _pnl, {delay: 50});

wickedsheep
11 Jan 2011, 6:24 AM
Oh, didn't know that. Thanks Condor.