Event fires when the checkbox state is changed.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
$node | {object} | the node object as jQuery element |
record | {object} | the record data |
state | {string} | the new state of the checkbox |
Examples
Event Sample
<div id="tree" data-source="/Locations/Get" data-checkboxes="true"></div>
<script>
var tree = $('#tree').tree();
tree.on('checkboxChange', function (e, $node, record, state) {
alert('The new state of record ' + record.text + ' is ' + state);
});
</script>