Showing posts with label Model dialog box result. Show all posts
Showing posts with label Model dialog box result. Show all posts

Wednesday, July 11, 2012

Close Model Dialog Box in SharePoint 2010

Hi ,


If you want to close your open dialog box, you can use below given scripts :


To send cancel result on the parent form :
SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.cancel,' Your Message Here '); 



also you can use this script to send Cancel result message on the parent form :
window.frameElement.cancelPopup();



To send OK result on the parent form from current form :
SP.UI.ModalDialog.commonModalDialogClose(SP.UI.DialogResult.OK, 'Your Message Here'); 


also you can use this script to send commit result message on the parent form :
window.frameElement.commitPopup();


You can use this script in your programming to close the model dialog box in SharePoint 2010

SharePoint Framework client-side web part sample with Angular Elements

Greeting Web Part This web part is created with Angular Element. It has one element “ issharepoint ” which takes true if user is...