title: ExtJs: Tree: how download then select using AJAX calls?
body: <p>Here's my goal :
  - open a tree
  - download the root nodes
  - expand automatically one specific node using AJAX (and loop n times here) until i find a leaf then select the leaf</p>
  
  <p>Here's the function that works when I declare the Tree :</p>
  
  <pre><code>        listeners: {
              load: function(n) {
                  console.log('load(n)');
                  n.eachChild(
                      function(n) {
                          if ((n.id=='lys/2007') ||
                              (n.id=='lys/2007/08') ||
                              (n.id=='lys/2007/08/29')) {
                              n.expand(false,false);
                          }
                      });
              }
          }
  </code></pre>
  
  <p>But if I don't know how to make it more "generic" (almost exactly like the <a href="http://www.extjs.com/deploy/dev/docs/" rel="nofollow noreferrer">ExtJs documentation</a>). But they don't jump automatically to a specific node (i.e. I want no user interaction).</p>
  
  <p>Any idea / advice how to do this?</p>
  
  <p>Don't hesitate to edit my post to make it proper English :)</p>