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. Image for the cookie policy date

How is it possible to replace a default event action?

Hello, guys.
I have the need to use the Diagram system in a way that, if the user makes the double-click of the left button of the mouse on a node, it will act one custom action "and not act the default action", that is allowing the user to modify the text. I mean, I've already used the even handler to open a custom window when the user double-clicks on a specific node, but the problem is that the Diagram object still propose the change of the text for that node. I need the diagram object not to do anymore its default action on the double-click event.

Is it possible to do?
Thank you a lot in advance.

3 Replies

SG Shyam G Syncfusion Team September 28, 2017 08:56 AM UTC

Hi Giovanni, 
 
The label editor for the entire Diagram can be disabled by setting the diagram.Controller’s “InPlaceEditing” to false. Please refer the below code snippet. 
diagram1.Controller.InPlaceEditing = false; 
 
Please refer our below help documentation link. 
 
Regards, 
Shyam G 



GG Giovanni Guarino September 28, 2017 12:52 PM UTC

Thank you very much for you help!

Great product, your library!



NG Naganathan Ganesh Babu Syncfusion Team September 29, 2017 05:09 AM UTC

Hi Giovanni,

Thanks for your update. 

We are happy to hear that your problem is resolved. Please let us know if you need any further assistance.

Regards,
 

Naganathan K G
 
 


Loader.
Up arrow icon