Results 1 to 4 of 4

Thread: Properly remove/delete/destroy component

  1. #1

    Default Properly remove/delete/destroy component


    I added some items to a panel (".add()", ".doLayout()"). Now, I would like to "undo" it, so there is no trace left whatsoever. How to do it? I read a few threads here, that plain ".remove()" isn't enough as the component remains in DOM or HTML document? In other words, how to completely delete a component?

  2. #2

    Default destroy component

    try this : Ext.getCmp('idControl').destroy(); ..... its 100% work for me.

  3. #3


    And you calling ".remove()" as well? And what happens it [the panel] has some child components? Does ".destroy()" removes them too?

  4. #4


    is there any dom or html still there?can u still get destroy ctl? i supposed to not larsen..

Similar Threads

  1. [STALE-372] Attempting to remove a component fails to fully remove element
    By orangechicken in forum Sencha Touch 1.x: Bugs
    Replies: 5
    Last Post: 4 Nov 2010, 4:35 PM
  2. delete/destroy datastore to reclaim allocated memory
    By mahesh122 in forum Community Discussion
    Replies: 13
    Last Post: 12 Mar 2009, 10:23 AM
  3. ExtJS 2.2.1 Paging Tool Bar does not Destroy properly in Firefox
    By piggyg1 in forum Ext 2.x: Help & Discussion
    Replies: 20
    Last Post: 24 Feb 2009, 4:17 PM
  4. DELETE function is not working properly
    By bluesapphire in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 24 Jul 2008, 7:49 AM
  5. [2.0b1][CLOSED] FieldSet component remove doesn't remove label
    By iaresean in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 15 Oct 2007, 2:25 AM

Posting Permissions

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