Results 1 to 3 of 3

Thread: Ext.Toolbar.removeAll(false) doesn't work properly?

  1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    3

    Default Ext.Toolbar.removeAll(false) doesn't work properly?

    I'm trying to remove buttons from a toolbar without detroying the Component so I can re-use it later, but I find that the function call Ext.Toolbar.removeAll(false) and Ext.Toolbar.remove(false) don't actually remove the HTML from the page. I am calling both doComponentLayout() and doLayout() after the calls to remove and add buttons, but the old buttons still show up...

    Calling the function with autoDestroy works fine but causes my references to be unclickable.

    Any suggestions?

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

    if you are not destroying them, you need to change their parent containers or hide them.

  3. #3
    Ext JS Premium Member
    Join Date
    Feb 2009
    Location
    London, UK
    Posts
    31

    Default

    OTOH... why doesn't removeAll() actually remove them, like the documentation suggests it should?

    I'm not sure if Mr. Garcia's reply is "the official way" or a workaround for a broken method.

    It really sounds like a bug to me... can we have a fix please?

Similar Threads

  1. Replies: 4
    Last Post: 11 Mar 2011, 8:21 PM
  2. the method Store.removeAll(); doesn't work
    By flamant in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 30 Oct 2010, 4:43 AM
  3. Replies: 6
    Last Post: 11 Dec 2009, 3:40 AM
  4. FormPanel.removeAll () doesn't work
    By mlc in forum Ext 2.x: Help & Discussion
    Replies: 5
    Last Post: 10 Mar 2009, 2:14 AM
  5. Set collapse(false), but doesn't work
    By LittleCrazy in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 30 Dec 2008, 10:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •