selectReturns: jQuery Object

Select node from the tree.

Parameters

NameTypeDescription
node {Object} The node as jquery object.

Examples

Select Method

    
 <button onclick="tree.select(northAmerica)" class="gj-button-md">Select North America</button>
 <button onclick="tree.unselect(northAmerica)" class="gj-button-md">Unselect North America</button>
 <br/>
 <div id="tree" data-source="/Locations/Get"></div>
 <script>
     var tree, northAmerica;
     tree = $('#tree').tree({
         primaryKey: 'id',
         dataBound: function () {
             northAmerica = tree.getNodeByText('North America');
         },
         select: function (e, node, id) {
             alert('select is fired for node with id=' + id);
         }
     });
 </script>