enable

Event fires on enable of tree node.

Parameters

NameTypeDescription
e {object} event data
node {object} the node as jquery object

Examples

Event Sample

    
 <button onclick="tree.enable(northAmerica, false)">Enable North America</button>
 <button onclick="tree.disable(northAmerica, false)">Disable North America</button>
 <br/><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');
         }
     });
     tree.on('enable', function (e, node) {
         alert(node.text() + ' is enabled.');
     });
 </script>