Event fires when the data is bound to node.
Parameters
Name | Type | Description |
---|---|---|
e | {object} | event data |
node | {object} | the node as jquery object |
id | {string} | the id of the record |
record | {object} | the data of the node record |
Examples
Event Sample
<div id="tree" data-source="/Locations/Get"></div>
<script>
var tree = $('#tree').tree();
tree.on('nodeDataBound', function (e, node, id, record) {
if ((parseInt(id, 10) % 2) === 0) {
node.css('background-color', 'red');
}
});
</script>