Event fires on disable of tree node.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
node | {object} | the node as jquery object |
Examples
Event Sample
<button onclick="tree.enable(northAmerica, false)" class="gj-button-md">Enable North America</button>
<button onclick="tree.disable(northAmerica, false)" class="gj-button-md">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>