How to disable auto expand tree node when using dynamic tree?

  1. #1

    How to disable auto expand tree node when using dynamic tree and filter?

    As the example Treepanel-advanced-filter , my tree is used ajax to load tree nodes dynamically, but the total amount of nodes is exceed 10,000, so when I use filter method ' tree.filterBy(function (node) { return re.test(node.text); ',it will become very slow for it will automatically expand all the nodes.
    my question is how to filter only the node that have been loaded , not to expand and load the unload nodes automatically ,this will raise the speed.
    Regards.
    Last edited by jhfone; Apr 02, 2013 at 1:39 AM.
  2. #2
    Hi @jhfone,

    Please try to set up Expanded to false for the nodes explicitly.

Similar Threads

  1. Replies: 0
    Last Post: Dec 19, 2011, 12:11 AM
  2. Replies: 16
    Last Post: Jul 19, 2011, 3:53 AM
  3. [CLOSED] [0.8.2] Expand a tree in a user control.
    By FVNoel in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 27, 2010, 8:44 AM
  4. add node to tree panel
    By a_elsayed2010 in forum 1.x Help
    Replies: 0
    Last Post: Oct 17, 2010, 2:35 PM
  5. Tree "Expand All" and "Collapse All" icons
    By daneel in forum 1.x Help
    Replies: 1
    Last Post: Mar 18, 2010, 1:11 PM

Tags for this Thread

Posting Permissions