Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2320
Cancel Node Select Via CSOM
posted

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? 

 

Parents
  • 10880
    posted

    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.

Reply Children