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

Standard Controls inside of nodes on a Diagram

Thread ID:





96002 Aug 15,2010 05:05 AM UTC Aug 21,2010 06:44 AM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Andre van Staden
Asked On August 15, 2010 05:05 AM UTC


We would like to make the diagram objects more interactive, thus enabling the user to click on say a button hosted in a node.

Is this possible and if so, from what class do we have to derive the node object to allow interaction with the contents hosted in a node object.

Currently every thing we try with the node system just gives us the standard controls where we have but a label to change.


Pandi Murugan A [Syncfusion]
Replied On August 18, 2010 01:49 PM UTC

Hi Andre,

Thank you for your interest in Syncfusion Product.

We suggest you to use ControlNode class to add controls in your diagram to make your diagram more interactive.You have to set the ControlNode's ActiveStyle property as one of Click,DoubleClik,None,ClickPassThrough and SelectedClick ActiveStyle's values.Please refer the following code snippet that demonstrate how to add ControlNodes to diagram.


private void Form1_Load(object sender, EventArgs e)
private void InsertListBox()
lst = new ListBox();
lst.SelectedIndex = 0;
lst.SelectedIndexChanged += new EventHandler
ControlNode ctrlnode = new ControlNode(lst, new RectangleF
(50, 110, 100,30));
ctrlnode.ActivateStyle = ActivateStyle.Click;
void lst_SelectedIndexChanged(object sender, EventArgs e)
label2.Text = lst.SelectedItem.ToString();

We have created a sample for your reference.Please refer the following sample.


Please let me know if you have any concerns.

Pandi Murugan A

Andre van Staden
Replied On August 19, 2010 03:30 AM UTC

Thanks a million,

Your support is simply outstanding.


Pandi Murugan A [Syncfusion]
Replied On August 21, 2010 06:44 AM UTC

Hi Andre,

Thanks a million for your feedback.

Please let me know if you have any other concerns.

Pandi Murugan A


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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