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

Open a diagram inside a dialog


I'm trying to open a diagram inside a dialog.

I can make it work. However, the max size of the dialog cannot be changed.

I open the dialog with this parameters.

I was checking other possibilities, but they do not adjust to my use case. rendering-a-diagram-in-a-partial-view

There is any other control that I can use to open as a container for the diagram, instead of the dialog? There is any way to overwrite the max Width and Height size of the dialog.

Kind regards,

Juan Acosta

5 Replies

AP Arun Palaniyandi Syncfusion Team April 25, 2017 12:08 PM UTC

Hi Juan,   
Thanks for contacting Syncfusion support.     
We have analyzed the query; In order to adjust the Diagram control inside the Dialog we need to set the width as auto. By default, the width of the Dialog control is 400px and when we set the width as auto the Dialog will automatically adjust to the width of the Diagram Control. Hence you can display the full Diagram inside the Dialog container.   
Also, please provide the answer for the below questions.   
·         What is the purpose of usage to set the max height and width for the control? 
·         Your requirement is to adjust the Diagram control inside the Dialog, right? 
We have prepared a sample for your reference below:    
Please look at our sample and if we are unclear with your reported scenario please explain us the issue in a detailed manner and the above details, so that this information to help us to provide an alternative solution.        

Arun P. 

JA Juan Acosta April 26, 2017 08:13 AM UTC

Hi Arun,

Thanks you for your reply.

I was checking your code but I still have some issues with my project.

when the page load. Also, I loss the event management inside the dialog. I don't get any errors in js.