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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Prevent drag and drop and resize of the node without usage of diagram constrants

Thread ID:





150838 Jan 21,2020 04:35 PM UTC Jan 22,2020 10:20 AM UTC React - EJ 2 1
Tags: Diagram
Dominique Toussaint
Asked On January 21, 2020 04:35 PM UTC

-For some reason, my overview panel and diagram is bugging when I use ~NodeConstraints.Drag and ~NodeConstraints.Resize constraints. Is there some other way to prevent dragging and resizing of the nodes in diagram?

Shyam G [Syncfusion]
Replied On January 22, 2020 10:20 AM UTC

Hi Dominique, 
We have created a sample in which we have removed Drag and resize functionality for the nodes using NodeConstraints. Could you please check in the below sample?. Still if you face any issues, please share us more details such as modify the below sample. 
Code example: 
let nodes = [ 
    id: "NewIdea", 
    height: 60, 
    offsetX: 300, 
    offsetY: 80, 
    shape: { type: "Flow", shape: "Terminator" }, 
    //remove drag and resize for nodes 
    constraints: NodeConstraints.Default &~(NodeConstraints.Drag | NodeConstraints.Resize), 
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

Live Chat Icon For mobile
Live Chat Icon