Diagram node: Prevent resize but allow drag

For a diagram node how do we prevent the users from resizing it but still allow the node to be dragged and dropped.


1 Reply

SU Sumathi Uthayakumar Syncfusion Team October 10, 2022 01:13 PM UTC

Hi Michale,


You can prevent resizing by disabling the node's resize constraints. Please refer to the following code snippet and UG documentation link:


Constraints=NodeConstraints.Default & ~NodeConstraints.Resize,


UG: https://blazor.syncfusion.com/documentation/diagram/constraints#node-constraints


By default, you can drag and drop nodes in the diagram page and you don't need to set any properties to achieve this.



Regards,

Sumathi U.


Loader.
Up arrow icon