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.

DoubleClickEvent On DiagramNode

Thread ID:

Created:

Updated:

Platform:

Replies:

120671 Oct 2,2015 01:36 AM Oct 6,2015 12:01 AM Windows Forms 3
loading
Tags: Diagram
rainkuan9
Asked On October 2, 2015 01:36 AM

Hi

I want to add eventhandler When doubleclick On DiagramNode

But its always show font input interface

Please let me know what should i do to remove default eventhandler

Thanks


Swarnesh Krishna Kumar [Syncfusion]
Replied On October 5, 2015 12:20 AM

Hi Rainkuan,
Thanks for contacting Syncfusion support.
If your intention is to remove the Font input interface in the diagram while double clicking the node we suggest you assign false for Diagram Controller’s InplaceEditing.
If your intention is to trigger any other operation while double clicking over the node we suggest you to use Diagram EventSink’s NodeDoubleClieck event in order to achieve your requirement.
We have attached a sample for your reference.
Sample:
Sample
Code Example:
//To Disable Font interface while double clicking over the node
diagram2.Controller.InPlaceEditing = false;

//To Trigger a separate function while double clicking the node
diagram2.EventSink.NodeDoubleClick += EventSink_NodeDoubleClick;

void EventSink_NodeDoubleClick(NodeMouseEventArgs evtArgs)

        {

            MessageBox.Show("Double click fired");
        }

Regards,
Swarnesh K


rainkuan9
Replied On October 5, 2015 10:49 PM

Thank you very much
That helped a lot

Swarnesh Krishna Kumar [Syncfusion]
Replied On October 6, 2015 12:01 AM

Hi Rainkuan,                                                                                                  


Thanks for the update.


Regards,

Swarnesh K


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.

;