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.
Unfortunately, activation email could not send to your email. Please try again.

Create TextNode without immediate editing

Thread ID:

Created:

Updated:

Platform:

Replies:

129355 Mar 14,2017 08:13 AM Mar 15,2017 03:26 AM Windows Forms 1
loading
Tags: Diagram
Michael Redetzky
Asked On March 14, 2017 08:13 AM

Hi,

Is there a way to create a TextNode, without showing immediately the editor of the TextNode?
I want to draw first my outline of the TextNode and afterwards, I want to edit the content of the TextNode by double-clicking on it.

Is there a property I can set to enable/disable editing?

Thanks for your help.

Naganathan Ganesh Babu [Syncfusion]
Replied On March 15, 2017 03:26 AM

Hi Stefan,  
Thanks for contacting Syncfusion support. 
In order to achieve your requirement, we suggest you to customize the Diagram’s TextTool and override the ActionComplete() method without calling the base method. Please refer to the below code example and sample. 
Code example: 
[C#] 
protected override void ActionComplete(Node nodeInserted) 
{ 
////Dont call to base class method it will activate the texteditor.... 
//base.ActionComplete(nodeInserted); 
} 
Sample: 
Regards, 
Naganathan K G 


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.

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.

;