Noad Double Click

2 posts, 0 answers
  1. Gourangi
    Gourangi avatar
    83 posts
    Member since:
    Mar 2008

    Posted 05 Feb 2009 Link to this post


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

    Divyesh Chapaneri
  2. Nikolay
    Nikolay avatar
    1802 posts

    Posted 06 Feb 2009 Link to this post

    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()  
        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,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
Back to Top