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

How to resize diagram

Thread ID:





118069 Jan 28,2015 12:58 AM UTC Jan 30,2015 10:11 AM UTC ASP.NET Web Forms 3
Tags: Diagram
Jim Jacobs
Asked On January 28, 2015 12:58 AM UTC


I`m trying to dynamically resize the diagram control using the following in my resize function:

                    $("#DiagramContent").ejDiagram({ height: newHeight - 20 });
                    $("#DiagramContent").ejDiagram({ width: newWidth - 20 });

but nothing seems to happen.
DiagramContent is the id of the diagram control.

What am I doing wrong?



Shyam G [Syncfusion]
Replied On January 28, 2015 01:18 PM UTC

Hi Jim

Thanks for using Syncfusion products.

Currently we don’t have support to update diagram’s model width and height at runtime. We consider this as an issue and  logged “Need to update diagram’s model width and height at runtime  as a defect and created a new incident 134564 on behalf of you related to this forum. We suggest you to follow up the incident for further reference using your direct trac account. However you can update the model’s width and height using the “updateViewPort()API at runtime. We have created a workaround sample which meets your requirement and it is available in the below link for download.


Please let me know if any concerns.


Shyam G

Jim Jacobs
Replied On January 29, 2015 07:43 PM UTC

Hi Shyam,

The updateViewPort() seems to be doing exactly what I needed.


Shyam G [Syncfusion]
Replied On January 30, 2015 10:11 AM UTC

Hi Jim

Thanks for the update

Please let me know if you require further assistance on this.


Shyam G


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