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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

preventing node from leaving diagramview

Thread ID:





104468 Jul 20,2012 02:31 PM UTC Aug 1,2012 06:00 AM UTC WPF 2
Tags: GridControl
Asked On July 20, 2012 02:31 PM UTC


my problem is that i do not want nodes to leave the visible diagramview area. Is there a property anywhere? I tried moving it back to 0 coordinate whenever dropping in a negative area, but that doesn't work.
And is there any way to prevent nodes from laying over one another and instead docking to their borders?

Thank you,

Replied On July 20, 2012 02:34 PM UTC

sorry, wrong forum

Sudhakar C [Syncfusion]
Replied On August 1, 2012 06:00 AM UTC

Hi Philipp,

We have analyzed your query and the responses are below.

Query 1: When we drop the node in negative side of the diagram page, we have set the dropped node’s “Offset X” or “Offset Y” to zero to prevent dropping the node in a negative side of the diagram page.

Query 2: If any node is dropped from the SymbolPalette or drag and drop the node on to the another node (overlapping with any node), we have to find out the nearest empty space and will place the node to that position to avoid overlapping. 

We have created a simple sample for your reference. In that sample, if you drag and drop the node in negative side, it will be move to the positive coordinate. And also, if you drop the node from symbolpalette or drag and drop the node on to any node (overlapping with any node), it will be move to the nearest empty space. For more information please refer the sample, which can be downloaded from the following location.

Please let us know if you have any concerns.





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