This is a migrated thread and some comments may be shown as answers.

Cancel node onclick event

1 Answer 76 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
James Crane
Top achievements
Rank 1
James Crane asked on 11 Feb 2009, 07:38 PM
Hi,

I have a requirement to stop a node click causing a submission, under some circumstances.

So I call the following function onClientNodeClicked

function

 

CheckForSave(sender, eventArgs)

 

{

    eventArgs.set_cancel(

true);

 

}

However I get an error: Object does not support this property or method - suggesting set_cancel no longer exists.

Anyone know how I can cancel this node posting?

Thanks

JC

1 Answer, 1 is accepted

Sort by
0
James Crane
Top achievements
Rank 1
answered on 11 Feb 2009, 07:42 PM
Found the answer! Should have been using onClientNodeClicking event, not onClientNodeClicked.
Tags
TreeView
Asked by
James Crane
Top achievements
Rank 1
Answers by
James Crane
Top achievements
Rank 1
Share this question
or