24 Aug 2010 2:57 PM #1
Removing toolbar buttons
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?
By vasion in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 24 Jan 2010, 1:00 PM
By Britace in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 19 Nov 2009, 7:26 PM
By guillaume.carbonneau in forum Ext 2.x: Help & DiscussionReplies: 4Last Post: 11 Nov 2008, 1:23 PM
By Lovecannon in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Nov 2007, 5:25 PM
By maya in forum Ext 1.x: Help & DiscussionReplies: 10Last Post: 22 Apr 2007, 11:38 PM