how create a control (event handler) to my custom symbol

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

1 Reply

AA Amsath Ali M Syncfusion Team 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

Loader.
Up arrow icon