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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to resize diagram

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hi,

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?

Thanks

Jim

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.

Sample:http://www.syncfusion.com/downloads/support/directtrac/118069/updateviewport1136371481.zip

Please let me know if any concerns.

Regards,

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.
Thanks

Jim

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.

Regards,

Shyam G



CONFIRMATION

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.

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

;