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. Image for the cookie policy date
close icon

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 08:13 AM

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.


Sumathi U.

Live Chat Icon For mobile
Up arrow icon