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

Administrator is not able to change user’s picture in User Profile in SharePoint Admin Center

For some users Admin is able to change picture by going to User Profile -> Manage user profile option. But for some users , Admin ...