Wednesday, 16 July 2014

SharePoint ModalDialog close

SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel, "Cancelled");

or

SP.UI.ModalDialog.commonModalDialogClose(1, 1);

or

SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK);