title: How do I check all check boxes in a Kendo UI TreeView (parents and children nodes) based on a button click?
body: <p>This only checks the parent nodes:</p>
  
  <pre><code>$(function()
  {
      $('#chkSelect').change(function()
      {
          if (this.checked)
          {
              $('#treeview input[type="checkbox"]').prop('checked', true);
          }
          else
          {
              $('#treeview input[type="checkbox"]').prop('checked', false);
          }
      });
  });
  </code></pre>
  
  <p>Please note that the children nodes may or may not be expanded.</p>