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

Node - Disable event on text click

1 Answer 70 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Preetam Ray
Top achievements
Rank 1
Preetam Ray asked on 15 Mar 2010, 04:39 PM
I need to disable the event or not fire the event for a particular node when clicking on the text. But i need the node to work the same way on clicking on the plus or the minus sign.

I need this functionality to be implemented only on this node. I add the node to the tree using the following code.

this.myBrowseNode = new RadTreeNode("Company", "myBrowseNode");              
this.myBrowseNode.Checkable = false;             
this.myBrowseNode.ExpandMode = TreeNodeExpandMode.ClientSide;
this.myBrowseNode.Expanded = true;
this.rTreeView.Nodes.Add(this.myBrowseNode);

1 Answer, 1 is accepted

Sort by
0
Thomas Salt
Top achievements
Rank 1
answered on 15 Mar 2010, 07:58 PM
Add a handler for the client OnClientNodeClicking event which cancels the default behavior.

function OnClientNodeClicking(sender, eventArgs) 
    eventArgs.set_cancel(true); 

Tags
TreeView
Asked by
Preetam Ray
Top achievements
Rank 1
Answers by
Thomas Salt
Top achievements
Rank 1
Share this question
or