Hi Jim
Thanks for using Syncfusion products.
Please note that the lane rendered in the palette has it’s default value of width and height which is set in the code behind. Whenever we drag and drop the node(lane) from the palette into the diagram, then the node’s width and height will be based on the PreviewWidth and previewHeight. So we suggest you to set the width and height for the lane using the “nodeCollectionChange” event and this event triggers before the node gets added in the diagram. We have provided sample and code snippet below for your reference.
Code snippet:
DiagramContent.OnClientNodeCollectionChange = "nodecollectionchanged";
function nodecollectionchanged(args) {
if (args) {
if (args.element && args.element.isSwimlane) {
if (args.element.orientation == "horizontal") {
args.element.minHeight = 120;
args.element.minWidth = 450;
}
if (args.element.orientation == "vertical") {
args.element.minHeight = 450;
args.element.minWidth = 120;
}
diagram.updateNode(args.element.name, {});
}
}
}
Sample:http://www.syncfusion.com/downloads/support/directtrac/117980/diagrambuildersample1211504405.zip
Please let me know if any concerns.
Regards,
Shyam G
Hi Jim
Thanks for the update
We have analyzed your requirement with our sample and we are unable to reproduce the reported issue at our end. Could you please provide us more details such as sample or share us a sample script file that you have used in your application or modify the below sample to reproduce the reported issue at our end?. This will help us to verify and provide better solution to you. please refer the below sample and video for your reference.
Sample:http://www.syncfusion.com/downloads/support/directtrac/117980/diagrambuilder972757057.zip
Video: http://www.syncfusion.com/downloads/support/directtrac/117980/nodelane2078322250.zip
Please let me know if any concerns.
Regards,
Shyam G