Unselect node from the tree.
Parameters
Name | Type | Description |
---|---|---|
node | {Object} | The node as jquery object. |
Examples
UnSelect Method
<button onclick="tree.select(northAmerica)" class="gj-button-md">Select North America</button>
<button onclick="tree.unselect(northAmerica)" class="gj-button-md">Unselect North America</button>
<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');
},
unselect: function (e, node, id) {
alert('unselect is fired for node with id=' + id);
}
});
</script>