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