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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How is it possible to replace a default event action?

Thread ID:

Created:

Updated:

Platform:

Replies:

132888 Sep 27,2017 08:08 AM UTC Sep 29,2017 05:09 AM UTC WinForms 3
loading
Tags: Diagram
Giovanni Guarino
Asked On September 27, 2017 08:08 AM UTC

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.

Shyam G [Syncfusion]
Replied On 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 


Giovanni Guarino
Replied On September 28, 2017 12:52 PM UTC

Thank you very much for you help!

Great product, your library!


Naganathan Ganesh Babu [Syncfusion]
Replied On 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
 
 


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

;