title: How can i check KendoTreeview has Children
body: <p>How can i expand kendotreeView nodes with no children?, i need help checking if parent has child node if there is one or more child i want to keep it collapsed otherwise expanded.</p>
  <p>I used the following Jquery code and works fine but it find by text value.  i rather check all node with child li and expand if no child exist.</p>
  <pre><code>        var treeview;
          treeview = $(&quot;#treeview&quot;).data(&quot;kendoTreeView&quot;);
          var nodeToExpand = treeview.findByText('abc.'); 
          treeview.expand(nodeToExpand);
  </code></pre>
  <p>is there anyways to replace the code above to collapse or expand based on that?</p>