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 create a control (event handler) to my custom symbol

Thread ID:

Created:

Updated:

Platform:

Replies:

109502 Jun 17,2013 03:21 PM UTC Jun 28,2013 04:26 AM UTC WinForms 1
loading
Tags: Diagram
samir
Asked On June 17, 2013 03:21 PM UTC

Hello,
I am beginners on Windows form Syncfusion (Essential diagram), i want to create a control for every node in group (ex: some rectangles in rectangle), when i click on node, a special event is fired. for example display the type of my custom symbol.
How i can do that programmatically?
Thank you

Amsath Ali M [Syncfusion]
Replied On June 28, 2013 04:26 AM UTC

Hi Samir,

 

Thanks for using Syncfusion products.

 

We suggest you to use the diagram.Eventsink’s ‘NodeClick’ event to achieve your requirement. Please refer the below code snippet.

 

Here is the code:

[C#]

diagram1.EventSink.NodeClick += new NodeMouseEventHandler(EventSink_NodeClick);

 

void EventSink_NodeClick(NodeMouseEventArgs evtArgs)

        {

            MessageBox.Show(evtArgs.Node.ToString());

        }

 

Please try the below attached sample and let us know if you have any queries.

 

Regards,

Amsath Ali. M



F109502_5adf4eb5.zip

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

;