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.

Adding Swimlane to Diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

132110 Aug 15,2017 12:15 AM Aug 16,2017 05:37 AM ASP.NET Web Forms 1
loading
Tags: Diagram
Deshan Thilakarathne
Asked On August 15, 2017 12:15 AM

I would like to know how to add a swimlane into the page via the aspx.cs page to load the swimlane at runtime.

I have been able to load nodes by creating them and subsequently adding them to the page via the following code:

DiagramWebControl.Model.Nodes.Add(Task1);

What is the way I can add a swimlane similarly?

Shyam G [Syncfusion]
Replied On August 16, 2017 05:37 AM

Hi Deshan, 
 
We have created a swimlane sample in which we have rendered the swimlane in symbol palette and the diagram. please refer to the sample below. 
 
 
  • Also please refer to the MVC help documentation below in which we have shown how to create a swimlane in class file. By the same way, you can create it in aspx.cs page.
  • But adding a swimlane in nodes collection differs in MVC and ASP.NET, please refer to the code example below in which we have shown how to add a swimlane in nodes collection in ASP.NET.
 
      Code example: 
      Aspx.cs page 
           //create swimlane 
            SwimLane swimlane = new SwimLane(); 
            swimlane.Type = "swimlane"; 
            swimlane.Name = "swimlane"; 
            //append swimlane in nodes collection 
            DiagramWebControl.Model.Nodes.Add(swimlane); 
 
 
Regards, 
Shyam G 


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.

;