Swimlane adds phase and lane automaticly

I mannualy create swimlane and add lanes and phases, but when i add it to diagramm its add phase and lane in auto mode.

newswimlane is SwimlaneViewModel


Before call  newswimlane contains 6 lanes

(_Diagramm.Swimlanes as ObservableCollection<SwimlaneViewModel>).Add(newswimlane);

after call  newswimlane  contains 7 lanes


and than 7 lanes displays


1 Reply 1 reply marked as answer

KR Karkuvel Rajan Shanmugavel Syncfusion Team September 28, 2021 07:09 AM UTC

Hi Anton, 
 
Reported Issue: The number of Lanes added is different while creating a new Swimlane. 
 
In Horizontal Swimlane, if the total height of lanes in swimlane is smaller than the height of the swimlane then an empty lane will be added at the end of the swimlane and it is the same for Phase also. For example, if you create a swimlane with UnitHeight as 700 and create 4 Lanes with UnitHeight for each Lane as 100, then while creating swimlane we have added a new lane for the remaining height 300.  So, please set the height of each lane or height of the swimlane based on your requirement. 
 
Regards, 
Karkuvel Rajan S 


Marked as answer
Loader.
Up arrow icon