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

integration of diagram application into a portal

Thread ID:





54725 Jan 16,2007 02:34 PM UTC Jul 31,2007 02:31 PM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Alexander Heidt
Asked On January 16, 2007 02:34 PM UTC


I’m searching for help to realize following scenario: After a user is logged in, the portal knows from which country the user is. In a dabase the information about a pocess is stored, which is typically for this certain country.
The next step is to read this information out of the database and display the process as a UML-diagram. The portal will be realized in ASP.NET

Is there an possiblity to realize the scenario with Essential Diagram? What is therefor to do? In what way the information about the diagram is sored?

Thanks a lot for the information

Ramya R [Syncfusion]
Replied On January 24, 2007 07:50 PM UTC


Please refer the below sample. In this sample, datas are collected from the database and symbols are created accordingly. And then links are established between the symbols and the symbols are arranged using the DirectedTreeLayoutManager.

The data is collected from the database as shown in the code snippet below,

private void LoadData(string tablename)

string datasrcpath = Server.MapPath(String.Empty);
datasrcpath = datasrcpath + @"\App_Data\Country.mdb";

// Connection string for the Org.mdb Access database
string connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + datasrcpath + ";";
OleDbConnection orgdbconnection = new OleDbConnection(connectionstring);
// Query to select all records from the Org.mbd database
string orgdbselectquery = "SELECT * FROM " + tablename;
OleDbCommand orgdbcommand = new OleDbCommand(orgdbselectquery, orgdbconnection);
// Create a connection to the datasource
// Execute the query command to build the data reader
OleDbDataReader orgdbreader = orgdbcommand.ExecuteReader();

// Extract employee data from the reader
while (orgdbreader.Read())
object[] data=new object[3];
int count=orgdbreader.GetValues(data);
string[] st = new string[10];
string[] str = new string[10];
for (int i = 0; i < count; i++)
st[i] = data[i].ToString();
str[i] = orgdbreader.GetName(i);
if (tablename == "Country")

} // Close the reader
// Close the connection


Please try this and let us know if this helps.

Thank you for your interest in Essential Diagram.


Replied On July 28, 2007 02:01 AM UTC

How to do this with Version=

Melba Winshia [Syncfusion]
Replied On July 31, 2007 02:31 PM UTC


Please refer the modified sample in below link which was created in


Major Changes in the Sample:

1) LineConnector is used instead of LinkCmd.
2) Diagram.Model.AppendChild() method is used instead of InsertNodesCmd.

Please refer the below migration document for more details regarding changes in 5.1


Please let me know if you have any other questions.



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