checkAllReturns: tree as jQuery object

Check all tree nodes

Examples

Sample

    
 <button onclick="tree.checkAll()" class="gj-button-md">Check All</button>
 <button onclick="tree.uncheckAll()" class="gj-button-md">Uncheck All</button>
 <br/><br/>
 <div id="tree" data-source="/Locations/Get"></div>
 <script>
     var tree = $('#tree').tree({
         checkboxes: true
     });
     tree.on('dataBound', function() {
         tree.expandAll();
     });
 </script>