How can I edit text when double clicked on a node?

Hi~
I am getting a lot of your help.
Thank you first.

What I want is to be able to edit the text of the node by double clicking after adding the control node to the diagram.

I expected to be able to edit text if I double click on node.
However, when I double clicked on the node, System.NullReferenceException occurred.

So I created the following event.

diagram1.EventSink.NodeDoubleClick += EventSink_NodeDoubleClick;
diagram1.EventSink.NodeClick += EventSink_NodeClick;

The NodeClick event worked fine, but the NodeDoubleClick event did not respond.
When both are used together, even if I double click on the node, the NodeClick event is triggered.

How can I edit text when double clicked on a node?

3 Replies 1 reply marked as answer

GG Gowtham Gunashekar Syncfusion Team January 21, 2021 01:17 PM UTC

Hi nam,  
Greetings from Syncfusion.  
By default, we use a Diagram’s ControlNode for hosting others control so we don’t provide label support for ControlNode. So, could you please share us more details like code example or sample for how to create controlnode in your end which will help us to analyze further and provides a better solution?  
Regards  
Gowtham 


NK nam ki hun January 22, 2021 04:54 AM UTC

I had to use textnode, but using controlnode is wrong.
With your help I changed it to textnode and got the desired result.
Thank you.


NG Naganathan Ganesh Babu Syncfusion Team January 22, 2021 09:31 AM UTC

Hi Nam, 
 
We are unable to reproduce the reported issue at our end. We have created a simple sample with your requirement. Please check the below attached sample and video. 
 
Sample: https://www.syncfusion.com/downloads/support/forum/161693/ze/Sample-2134136235 
 
 
If still the issue occurred, please share us more detail such as to modify the attached sample to reproduce reported issue at our end. 
 
Regards, 
Naganathan K G 


Marked as answer
Loader.
Up arrow icon