Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

There are various approaches to achieve this:

You can use the SP.UI.ModalDialog.RefreshPage(SP.UI.DialogResult.OK);

http://blogs.msdn.com/b/jfrost/archive/2009/11/08/how-to-display-a-sharepoint-dialog-from-ribbon-button-and-get-selected-item-context.aspx

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

http://makarandrkulkarni.blogspot.com/2010/01/new-one.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.