After adding a document to a sharepoint document library from an SPModalDialog, how can I refresh the underlying list using the new 2010 client object model in SharePoint?
1 Answer
There are various approaches to achieve this:
You can use the SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK);
OR
In your ribbon button add the following CommandUIHandler :
http://msdn.microsoft.com/en-us/library/ff630938.aspx
OR
Another mrthod is using the SPRibbonPostBackCommand