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

Diagram resize

Thread ID:





101957 Dec 8,2011 08:14 PM UTC Dec 15,2011 04:05 AM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Truman Lackey
Asked On December 8, 2011 08:14 PM UTC

How do I resize the diagram and scrollbars if BoundaryContraints are off and a node is dragged outside of the current boundaries in any direction?

Amsath Ali M [Syncfusion]
Replied On December 13, 2011 01:24 PM UTC

Hi Truman,

Thanks for your interest in Syncfusion products.

We suggest you to set the Diagram.Model’s ‘SizeToContent’ property to ‘true’ to achieve your requirement. Please refer the below code snippet.

Here is the code:
//Indicates whether Model will be sized to its content, but not less than MinimumSize
diagram1.Model.SizeToContent = true;

Here is the Sample:

Please try the above sample and let us know if you have any queries.

Amsath Ali. M

Truman Lackey
Replied On December 13, 2011 11:32 PM UTC

I also set

DiagramWebControl1.Style.Add("overflow", "auto");

to get this working.

Amsath Ali M [Syncfusion]
Replied On December 15, 2011 04:05 AM UTC

Hi Truman,

Thanks for the update.

We are happy to hear that the issue has been resolved.
Please let us know if you require any further assistance.

Amsath Ali. M


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

or the page will be automatically redirected to 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