Hi There,

I'm new to the forum and ext in general and am looking for some help with the toolbar component.

I have set up a toolbar and am wanting to dynamically remove buttons and add new buttons to it, I'm getting an error after destroying buttons in the toolbar whenever I call doLayout on the main viewport to refresh the screen.

Now I have tried both removeAll(true); and also removing buttons by their variable name, such as navButtonOne.destroy();

The error I'm getting in firebug is...

target.dom is undefined
[IMG]chrome://firebug/content/blank.gif[/IMG] position = target.dom.childNodes[position];

Any ideas or workarounds that I can use?

Thanks.