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

Noad Double Click

1 Answer 40 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 05 Feb 2009, 10:04 AM
Hi,

There is no event as Noad Double Click from it I should get particular Noad as event args !

Regards,
Divyesh Chapaneri

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 06 Feb 2009, 09:24 AM
Hello Divyesh Chapaneri,

Thank you for the feedback.

Indeed, there is no NodeDoubleClick event currently. It will be implemented in one of our next releases. For the time being, you can easily achieve the desired functionality by using the MouseDoubleClick event of RadTreeView. In the event handler you can get the visual element representing a RadTreeNode - TreeNodeUI. The TreeNodeUI element has the AssociatedTreeNode property which returns the actual RadTreeNode. Please refer to the code snippet below:
public Form1()  
{  
    InitializeComponent();  
 
    this.radTreeView1.MouseDoubleClick += new MouseEventHandler(radTreeView1_MouseDoubleClick);  
}  
 
void radTreeView1_MouseDoubleClick(object sender, MouseEventArgs e)  
{  
    RadElement nodeElement = this.radTreeView1.ElementTree.GetElementAtPoint(e.Location);  
    if (nodeElement is TreeNodeUI)  
    {  
        this.Text = ((TreeNodeUI)nodeElement).AssociatedTreeNode.Text;  
    }  

I am updating your Telerik points for the feedback. If you have additional questions, feel free to contact me.

Kind regards,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Menu
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or