title: Kendo UI Treeview not displaying the data on setDataSource (after loading)
body: <p>I have a Treeview that loads fine on the page load but i want to filter the tree down to the selected node, the functionality all seems to be working 100%, however it is not displaying anything on the tree when i try to apply the filter even though the json is returning. I hope i am making sense.
  Here is my code:</p>
  
  <pre><code>&lt;div id="treeview"&gt;&lt;/div&gt;
  &lt;script&gt;
      var selectedId;
  
      var homogeneous = new kendo.data.HierarchicalDataSource({
          transport: {
              read: {
                  url: "/loadtree",
                  dataType: "json"
              }
          },
          schema: {
              model: {
                  id: "Id",
                  hasChildren: "hasChildren"
              }
          }
      });
  
      $("#treeview").kendoTreeView({
          dataSource: homogeneous,
          dataValueField: "Id",
          dataTextField: "Name",
          select: onSelect
  
      });
  
  
  
      function onSelect(e) {
          var tv = $("#treeview").data("kendoTreeView").dataItem(e.node);
          $("#details-container").load("entitydetail/" + tv.Id);
          selectedId = tv.Id;
  
      }
  
      function loadTreetoSelected()
      {
  
          newdata = new kendo.data.HierarchicalDataSource({
              transport: {
                  read: {
                      url: "/loadtreetoselected/" + selectedId,
                      dataType: "json",
                  }
  
              },
              schema: {
                  model: {
                      id: "Id",
                      hasChildren: "hasChildren"
                  }
              }
          });
  
          $("#treeview").data("kendoTreeView").setDataSource(newdata);    
  
      }       
  
  &lt;/script&gt;
  
  &lt;input type="button" value="Filter to Selected" onclick="javascript: loadTreetoSelected();" /&gt;
  </code></pre>
  
  <p>and here is the json that is returned:</p>
  
  <pre><code>{"Id":7932,"Name":"OPC 2013","hasChildren":true}
  </code></pre>
  
  <p>Thanks for any help</p>