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

Multiple modals on same page


When having two buttons where each opens a modal. The first modal is opened regardless of which of the two buttons is pressed. The modal references are:
EjsDialog dialogObj;
EjsDialog secondDialogObj;

However, when performing this.secondDialogObj.Show() the first modal is opened.

3 Replies

BS Buvana Sathasivam Syncfusion Team June 10, 2019 10:24 AM UTC

Hi Ivan, 

Thanks for using Syncfusion Products. 

We have checked your reported issue.  But, unfortunately we were unable to reproduce your reported issue.  The different modal dialog is opened properly when clicked on different buttons.  Please find the below sample for your reference. 

In above sample, we have created two buttons.  We have opened the different modal dialog when press the different buttons. 

If still issue persist, can you please share your full page code or reproduce your issue on above shared sample.  

Buvana S 

KI Krasimir Ivanov June 10, 2019 11:02 AM UTC

Yes, it works. However, I managed to find a work-around in my case and cannot therefore see what the problem was. Thank you for the reply! :)

BS Buvana Sathasivam Syncfusion Team June 11, 2019 04:27 AM UTC

Hi Ivan, 
Thanks for the update.  We are glad to hear that the issue was resolved.  
Please let us know if you need any further assistance.  
Buvana S  

Live Chat Icon For mobile
Up arrow icon