We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can I force a node's text into edit mode?

Thread ID:

Created:

Updated:

Platform:

Replies:

105793 Nov 19,2012 08:41 PM UTC Nov 29,2012 04:30 AM UTC WinForms 1
loading
Tags: Tools
Bob Walker
Asked On November 19, 2012 08:41 PM UTC

On TreeViewAdv, if I set Node.LabelEdit = True then if a user selects a node and presses F2 it will go into edit mode where the user can edit the Node.Text.

How can I place an existing node into edit mode when the user (for example) clicks on a Rename button on a toolbar or toolstrip?


Chandran R [Syncfusion]
Replied On November 29, 2012 04:30 AM UTC

Hi Bob,

 

Thanks for your interest in Syncfusion products.

 

You can achieve your requirement by using the following code snippet and  also I have attached a simple sample that demonstrates the same.

 

[c#]

 

    private void toolStripButton1_Click(object sender, EventArgs e)

       

                {

            this.treeViewAdv1.LabelEdit = true;

            SendKeys.Send(" {F2}");

           

        }

 

[sample link]

 

http://www.syncfusion.com/downloads/Support/DirectTrac/101563/Sample1602623992.zip

 

Please let us know if you need any other details.

 

Regards,

 

Chandran R


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;