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

Snap to Grid

Another simple question. How do you turn off snap to grid or change the granularity of movement when draging a node?

Thanks again

2 Replies

GM Gowri Manohari D Syncfusion Team May 26, 2009 12:49 PM UTC


Hi Steve,

Thanks for choosing Syncfusion Products.

The below is the code snippet for your requirement.In order to change the granularity of movement by set the Grid.HorizontalSpacing and Grid.VerticalSpacing property.Refer the below code for more details.

this.diagramComponent.View.Grid.SnapToGrid = false;
this.diagramComponent.View.Grid.HorizontalSpacing = 40;
this.diagramComponent.View.Grid.VerticalSpacing = 40;


Thanks & Regards,
Gowri



SM Steven Mohnkern May 27, 2009 06:49 PM UTC

Perfect. I missed that. Thanks once again.

Loader.
Live Chat Icon For mobile
Up arrow icon