select

Event fires after selection of tree node.

Parameters

NameTypeDescription
e {object} event data
node {object} the node as jquery object
id {string} the id of the record

Examples

Event Sample

    
 <p>Select tree node in order to fire the event.</p>
 <div id="tree" data-source="/Locations/Get"></div>
 <script>
     var tree = $('#tree').tree();
     tree.on('select', function (e, node, id) {
         alert('select is fired for node with id=' + id);
     });
 </script>