Team,
How would I remove the selection of a node on a click off the tree or node and/or deselect it on a click onto the same already selected node?
Thank you!
Hello Mark,Thank you for contacting Infragistics Developer Support and your patience.
If you want to deselect node if it is already selected:
nodeClick: function(evt, ui) { var selectedNode = $tree.igTree("selectedNode"); if (selectedNode.path == ui.node.path) { var $selectedNodeElement = selectedNode.element; $tree.igTree("deselect", $selectedNodeElement); $($selectedNodeElement.context).removeClass('ui-state-focus'); return false; } }
If you have any additional questions please let me know.