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

¿the length of the line is always snapped to grid?

Hi,

When drawing lines, these fit the grid. Once drawn these can be moved outside the grid, but the length can not vary more than grid by grid.

My clients always complain about this and that it's so difficult create a line.

Could you help me?

Attachment: Video_1435926806_d00e0795.zip

3 Replies

SK Swarnesh Krishna Kumar Syncfusion Team July 6, 2015 10:48 AM UTC

Hi Blanca,
Thanks for using syncfusion products.
We suggest you to set the diagram’s view.Grid.SnapToGrid to false to avoid the variation of line’s length grid by grid.
Here is the code snippet:
Diagram1.View.Grid.SnapToGrid = false;
To extend the line away from the model we suggest you to set the Diagram Model’s BoundaryConstrainEnabled to false and set the Diagram Model’s SizeToContent to true.
Here is the code snippet:
diagram2.Model.BoundaryConstraintsEnabled = false;
diagram2.Model.SizeToContent = true;
Here is the Video:
Video
Here is the Sample:
Sample
Please let us know if any concerns.
Regards,
Swarnesh K





BC Blanca Calderon replied to Swarnesh Krishna Kumar July 8, 2015 08:32 AM UTC

Hi Blanca,
Thanks for using syncfusion products.
We suggest you to set the diagram’s view.Grid.SnapToGrid to false to avoid the variation of line’s length grid by grid.
Here is the code snippet:
Diagram1.View.Grid.SnapToGrid = false;
To extend the line away from the model we suggest you to set the Diagram Model’s BoundaryConstrainEnabled to false and set the Diagram Model’s SizeToContent to true.
Here is the code snippet:
diagram2.Model.BoundaryConstraintsEnabled = false;
diagram2.Model.SizeToContent = true;
Here is the Video:
Video
Here is the Sample:
Sample
Please let us know if any concerns.
Regards,
Swarnesh K




Thank you!


NG Naganathan Ganesh Babu Syncfusion Team July 10, 2015 03:47 AM UTC

Hi Blanca,
 
Thanks for your update.
 
We are happy to assist with you and please let me know if you need further assistance.
 
Regards,
 
Naganathan K G

Loader.
Live Chat Icon For mobile
Up arrow icon