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

Creating a diagram on the fly

Thread ID:





96176 Aug 25,2010 03:55 PM UTC Sep 1,2010 02:30 PM UTC ASP.NET Web Forms (Classic) 1
Tags: DiagramWebControl
Tony Davies
Asked On August 25, 2010 03:55 PM UTC


Does anyone know if it is possible to create a diagram programatically? I have a SQL db that describes the relationships between various systems and their feeds. I thought the best way to show this is through a ERD type diagram.

The data can change at any time so the diagram would need to be built at run time.

If it is possible I'll invest the time in learning the control, but thought I'd check first


Pandi Murugan A [Syncfusion]
Replied On September 1, 2010 02:30 PM UTC

Hi Tony,

Thank you for using Syncfusion Products.

You can create Syncfusion DiagramWebControl dynamically and you can populate the data within diagram. Please refer the following code snippet.

using Syncfusion.Windows.Forms.Diagram;

public partial class _Default : System.Web.UI.Page
protected void Page_Load(object sender, EventArgs e)
Syncfusion.Web.UI.WebControls.Diagram.DiagramWebControl diagram = new Syncfusion.Web.UI.WebControls.Diagram.DiagramWebControl();
Model model = new Model();
diagram.Model = model;
diagram.LoadBinaryDocument(Server.MapPath("Enhanced Line Routing.edd"));
diagram.Width = 200;
diagram.Height = 400;
diagram.EnableScrollBars = true;

The following dlls need to be referenced in your application for the usage of Essential Diagram Web.

• Syncfusion.Core.dll

• Syncfusion.Shared.Base.dll

• Syncfusion.Shared.Web.dll

• Syncfusion.Diagram.Base.dll

• Syncfusion.Diagram.Web.dll

• Syncfusion.Tools.Web.dll

Add the following HttpHandler in your web.config file.

Replace this Version=X.X.X.X with Syncfusion Essential Studio version. For example Version=8.303.0.20

Please let me know if you any 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

or the page will be automatically redirected to 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