How to build a Tree from static data

This is an archived post from the ExtJS era — the code may be obsolete, but the principles often still apply.

Code in this post can be obsolete, however, principles and theory may still apply.

17 comments

  1. ArikApril 23, 2008archive
    Saki, Thank you for providing the most elegant solution to this problem. You're an asset to the Ext community, ~Arik
  2. jsakalosApril 23, 2008archive
    Take a look also at <a href="http://arraytree.learnfromsaki.com" target="_blank" rel="nofollow">ArrayTree Extension</a>. It uses data from this article.
  3. TboAugust 11, 2008archive
    Jozef, This worked in ExtJs 2.1. But now, in ExtJs 2.2 it seems to be broken. Do you have an update on the article?
  4. TboAugust 11, 2008archive
    Can't edit my previous comment. The solution is to remove loaded:true in the ASyncTreeNode config.
  5. edorSeptember 4, 2008archive
    hai saki... i have some problems with the panel. i have the dinamic tree (base on database), when i click the node (output is url to an extjs formPanel's file), i want this formPanel to be displayed to a panel. but the fact, the formPanel wouldnot render/appear to that panel...:( please help me.. thanks regards
  6. SakiSeptember 15, 2008archive
    @edor, it is better to handle specific problems/questions on an <a href="http://extjs.com/forum" target="_blank" rel="nofollow">Ext forum</a> where other people can help you too.
  7. mjack003November 27, 2008archive
    Saki, You've got some great examples and are a great asset to those learning Ext. Could you please update this example so that it will correctly work with Ext 2.2. Line 61 in your js source above should be removed and it will work like a charm again.
  8. deardeer76February 13, 2009archive
    After run this program, why it only displays \
  9. deardeer76February 13, 2009archive
    Why the tree displayed only shows "Tree Root", no children??? Thanks!
  10. deardeer76February 13, 2009archive
    I use ext 2.2.1, but only display the "Tree Root", no children. What's the problem?
  11. SakiFebruary 13, 2009archive
    Now it will work
  12. jsonxAugust 26, 2009archive
    Thanks for clear example. It works with Ext3 without problem.
  13. TurgutAugust 6, 2010archive
    Thank you. Works fine. Clear example...
  14. joeAugust 16, 2010archive
    I hope Senchas payroll ;)
  15. Surendra JnawaliFebruary 1, 2011archive
    good work, thank you very much.
  16. RafiMarch 13, 2011archive
    thanks for the nice tutorial. searched for it for a long while.
  17. Mimmo RossiOctober 22, 2012archive
    Hi, there is a posibility to put initially children:[], and then in a such event like render of treepanel or TreeLoader, call the load of children array? Thanks

Comments are closed on archived posts.