title: Dynatree js - Collapse specific node
body: <p>I have tree loaded as below</p>
  
  <pre><code>1Home
      2.1 HS1
          2.1.1 Gallery1
      3.1 HS2
          3.1.1 Gallery3
  </code></pre>
  
  <p>My Goal is initially tree will be collpased and showing below output</p>
  
  <pre><code>1 Home
       +2.1 HS1
       +3.1 HS2
  </code></pre>
  
  <p>If I add Gallery 2.1.2 Gallery 2, After adding it It should expand 2.1 HS1 and show 2.1.2 Gallery 2 selected. HS2 should collapse. Below outout is expectd.</p>
  
  <pre><code>1Home
      2.1 HS1
          2.1.1 Gallery1
          2.1.2 Gallery2
      +3.1 HS2
  </code></pre>
  
  <p>Please help me how i can achieve above functionality</p>