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 to use AddInfo attribute on DiagramNode in ascx file

Thread ID:





132120 Aug 15,2017 01:44 PM UTC Aug 16,2017 04:58 PM UTC ASP.NET Web Forms 1
Tags: Diagram
Nathan Jent
Asked On August 15, 2017 01:44 PM UTC

I have a palette of shapes that can be added to the diagram. I want to add type information that can be used in add events. I can set the addinfo property for nodes by iterating over the palette items in the code-behind. I would prefer to set the AddInfo attribute directly in the ascx file but cannot find the proper way of defining it. Can anyone give an example?

<ej:BasicShape Width="80" Height="80" BorderColor="black" BorderWidth="2" Shape="Rectangle" AddInfo="???"></ej:BasicShape>

Shyam G [Syncfusion]
Replied On August 16, 2017 04:58 PM UTC

Hi Nathan, 
The addInfo is an object property and could not be added in the design page. So please use this property in the aspx.cs page. Please refer to the code example below. 
Code example: 
   BasicShape node = new BasicShape(); 
   node.Name = "node"; 
   //define addInfo property  
   Dictionary<string, object> addInfo = new Dictionary<string, object>(); 
   addInfo.Add("firstnode", "node"); 
   node.AddInfo = addInfo; 
Shyam G 


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