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
close icon

How to resize diagram

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

3 Replies

SG Shyam G Syncfusion Team 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




JJ Jim Jacobs January 29, 2015 07:43 PM UTC

Hi Shyam,

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

Jim


SG Shyam G Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon