Hi Dsoftware,
To restrict the node drag , remove the drag constraints from the node Default constraints. On analyzing the provided code snippet , you have directly access the NodeConstraints, so that NodeConstraints of undefined error occurs. When try to access any diagram properties get the properties from the diagram and access the required property as ej.datavisualization.Diagram.NodeConstraints. Please refer below code example
var node = {
name: "newNode",
width: 100,
height: 100,
//Sets position
offsetX: 550,
offsetY: 100,
fillColor: "white",
borderWidth: 2,
constraints: ej.datavisualization.Diagram.NodeConstraints.Default & ~ej.datavisualization.Diagram.NodeConstraints.Drag
}; |
Regards
Aravind Ravi