0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy