How to remove all children of a tree node

Code in this post can be obsolete, however, principles and theory may still apply.
Suppose we want to remove all children of the node node:
That’s all there is to it

Share on FacebookTweet about this on TwitterShare on LinkedInShare on Google+Pin on PinterestEmail this to someone
Follow me:


I'm a well seasoned developer, consultant and educator of web applications based mainly on Sencha libraries, PHP, MySQL and Node.js. Besides (Apple) computers, I love photography and mountain biking.
Follow me:

Latest posts by Saki (see all)


  1. blablaman says

    are you the maker of the extjs wordpress template?

    i like it and i see the features of 2.0?
    is this still under development??


  2. Steve says

    Just to bring to ppls attention, there’s a new removeAll method on the tree node. Looks like its only in version 3.2 and not 3.1 (worked that out the hard way). removeChild also doesn’t work in 3.1 but fixed in 3.2.

  3. solovieff says

    Hi, I am trying to remove the nodes like in your example and than add them again. Firstly I have a memory leak after that, and also sometimes i have an awfull “ is null
    error source line: [Break on this error] Ext.ToolTip=Ext.extend(Ext.Tip,{showDe…ithin(,true)){return;}” error );

We will be happy to hear back from you

Please Login to post a comment