disable

Event fires on disable 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('disable', function (e, node) {
         alert(node.text() + ' is disabled.');
     });
 </script>