title: Lazy-loading TreeView with JsTree in Asp.Net MVC
body: <p>I am using JsTree on my project. I want to do like that:</p>
  
  <p>I want to show just root nodes when tree loaded first time after I want to show sub-nodes when I clicked root node (+) or of sub-node. I mean, I want to get from database and add to the sub-nodes when I clicked every node.</p>
  
  <p>How can I do that in Asp.Net MVC? I looked almost every JsTree Ajax sample. But I couldn't do that. What should I return from action? How should I do my action Please help!</p>
  
  <p>JsTree: <a href="https://www.jstree.com/" rel="noreferrer">https://www.jstree.com/</a>  </p>
  
  <p>Samples:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/8078534/jstree-loading-subnodes-via-ajax-on-demand">jsTree - loading subnodes via ajax on demand</a></li>
  <li><a href="https://stackoverflow.com/questions/29301155/jstree-append-child-node-dynamically">jsTree : Append child node dynamically</a></li>
  <li><a href="https://stackoverflow.com/questions/22627132/jstree-load-nodes-dynamically">JSTree - Load nodes dynamically</a></li>
  </ul>