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

Programatically adding swimlanes

Thread ID:





127562 Nov 23,2016 11:07 AM UTC Nov 24,2016 09:54 AM UTC JavaScript 1
Tags: ejDiagram
Gabriel Axel
Asked On November 23, 2016 11:07 AM UTC


I am trying to programatically add swimlanes to the diagram. When I try to add a lane like so:

diagram.add({ header: { width: 50, height: 50, fillColor: '#C7D4DF', fontSize: 11 }, height: 60, width: 140, fillColor: '#f5f5f5', offsetX: 70, offsetY: 30, orientation: 'horizontal', isLane: true })

there is an error in the console and nothing is added. When I try to add a phase like so:

diagram.add({ type: 'phase', lineWidth: 1, lineDashArray: '3,3', lineColor: '#A9A9A9', parent: '', orientation: 'vertical', label: { text: '' } })

the browser becomes unresponsive. I am using "add" and not "addPhase" because this is for free drawing by the user.

Am I doing something wrong or are these bugs?


Shyam G [Syncfusion]
Replied On November 24, 2016 09:54 AM UTC

Hi Gabriel, 

We have created a sample in which we have shown how to add the swimlane,lane and phase at runtime. 

Shyam G 


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

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