title: Kendo treeView Server Filtering with Load on demand
body: <p>I want to have something similar to the example here <a href="http://demos.telerik.com/kendo-ui/treeview/filter-treeview-in-dialog" rel="nofollow noreferrer">http://demos.telerik.com/kendo-ui/treeview/filter-treeview-in-dialog</a> but with some changes which are</p>
  
  <ul>
  <li>Server side filtering</li>
  <li>remote datasource</li>
  <li>Load on demand true (when no search)</li>
  </ul>
  
  <p>For example, the expected behaviour is initially the tree will be loaded from remote datasource with load on demand (only first level will be retrieved) and when user enter a search text, the search will be performed on server side and all results will be returned and no lazy loading. last thing when user clear search text, the tree will return to lazy loading again and load on demand would be true. </p>
  
  <p>And here are more details about my case</p>
  
  <ul>
  <li><p>Tree Structure will be only two levels, let say type and item</p></li>
  <li><p>root level is fixed, all roots will always shown</p></li>
  <li><p>first json object structure which will be used in all data retrieval will be</p>
  
  <ul>
  <li>Id</li>
  <li>Description</li>
  <li>HasChild</li>
  <li>Childs</li>
  </ul></li>
  <li><p>so data will be retrieved from the server as following</p>
  
  <ul>
  <li>first load will be the root level only, has child will be true for all roots, and children will be null </li>
  <li>when expand node (with lazy loading), only return the children for the expanded node</li>
  <li>when search (will not lazy loading), return all roots with matched children in children property</li>
  </ul></li>
  </ul>
  
  <p>Any ideas?</p>