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

Modal dialog from another

How can I open a modal dialog from another modal dialog and handle events when child dialog is closed?

1 Reply

SN Sasikala Nagarajan Syncfusion Team March 23, 2015 12:47 PM UTC

Hi Rami,

Thanks for using Syncfusion products,

We have analyzed your query(how to open dialog inside the another dialog). We have prepared the sample based on your requirement.

Please get the sample from below location,


In given sample we have created two dialog (defined the one dialog inside another dialog).

When the page has been loaded, we have initialized these two dialogs in script with showOnInit (Defines the Dialog window to open/close state) API value as false in child dialog.

Then We have opened the child dialog in button (child_dialog_open) click event.

Please refer the below code snippet




enableModal: true,

enableResize: false,

width: 300,

position: { X: 363, Y: 110 },

close: "onDialogClose"


$("#child_dialog").ejDialog({ showOnInit: false, close: "close" });

$("#selectCar").ejDropDownList({ targetID: "carsList", });


$("#child_dialog_open").ejButton({ size: "small", width: "100%", click: "dialogopen" });


function dialogopen() {



handle events when child dialog is closed

In given sample when we close the child dialog, the selected value of child dialog’s dropdown list is sets to parent dialog textbox (in cars list textbox).

Please refer the below code snippet:

function close(args) {

var obj = $("#selectCar").data("ej-dropDownList");



Please check with the given sample to know more about handing the close event of dialog and let us know if you have further queries.


Sasikala Nagarajan

Live Chat Icon For mobile
Up arrow icon