How can I abort node selection via ClientSide Object Model?
I was trying to do this in the
BeforeNodeSelectionChanged client event
var tree = igtree_getTreeById(treeId);tree.NeedPostBack = false;tree.CancelPostBack = true;
THis doesn't prevent the node from changing and it didn't prevent the postback from occuring.
What am I doing wrong?
Try
return true;
I am assuming the server side event you have handled is the NodeSelectionChanged event. If you have the NodeClicked event handled then you will have to do the same for the client side NodeClick event by returning true.
Wow, in 100 years I probably woudn't of thought to return true to cancel the event. Thank you for the quick response, this fixed my problem.