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.
Unfortunately, activation email could not send to your email. Please try again.

Creating a diagram on the fly

Thread ID:

Created:

Updated:

Platform:

Replies:

96176 Aug 25,2010 11:55 AM Sep 1,2010 10:30 AM ASP.NET Web Forms (Classic) 1
loading
Tags: DiagramWebControl
Tony Davies
Asked On August 25, 2010 11:55 AM

Hi

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


Thanks

Pandi Murugan A [Syncfusion]
Replied On September 1, 2010 10:30 AM

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.



[C#]
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;
this.Controls.Add(diagram);
}
}


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.

Regards,
Pandi Murugan A



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.

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.

;