Hello,
I have a tree with several nodes. I have function OnNodeClick to get the selected node. But I also want the node that lost focus. How do I get that information?..
The last selected item can be retrieved from client side "OnClientNodeClicking" handler. Save the value in a global location (Eg:HiddenField) and access it from code behind.
Client code is shown here:
<script type="text/javascript">
functionOnClientNodeClicking(sender, args) {
vartext = args.get_node().get_text();
if(sender.get_selectedNode() != null)
alert(sender.get_selectedNode().get_text()); // get the last selected node