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 Answer 1

1

There are various approaches to achieve this:

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

Link

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 and acknowledge you have read our privacy policy.