How can I know if a tree has finished loading?

Posted by jack on January 6th, 2009
  • I am building a tree. After the tree is initially created I execute the expandAll() method on it to populate. I do this because the tree is dynamic in nature and so I can't just load a static set of data ...

    Anyway, once the tree is loaded a user can manipulate the contents and then send their work of art to be further processed. Trouble is I need to disable the submit button until the tree is completely populated, otherwise if I get a click happy user the end result makes them (and me from complaints) very unhappy.

    Is there anyway I can determine when the last load is completed?


  • I looked at that, but since the expandAll() causes a series of load calls I had dismissed this option assuming it would call each time a node was expanded. I'll give it a try though.


  • there is a 'load' event on the treeloader. setup a listener for that.

    load : ( Object This, Object node, Object response )
    Fires when the node has been successfuly loaded.







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about How can I know if a tree has finished loading? , Please add it free.