SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I use the client object model in javascript to have a function to refresh a list view?

Scenario: I have a form that uses a button which uses the sharepoint client object model to insert a list item, but after its finished it does not refresh on its own, no I dont want it to refresh automatically every 15 seconds, I want it to refresh the moment the item gets inserted like in the out of the box forms, how can I achieve this?

share|improve this question

You can use a Item Adding event that will do a partial post back as you said your using "Forms" or you can use AJAX update panel

Check this link out as well, its for webparts but I guess your using ListView Webpart so might help, plus which forms are you using ?


share|improve this answer

Hi from what I guess is you want to refresh a list view when an item has been added via client side using a javascript function?

you can do that using this: there is a method called "Enable Asynchronous Update" what would do the trick ;), this is out of the box function that already exists.

also using SPGridView you can build your list, bind the data from the database and then wack it in an updatepanel!

It is much faster, safer, easier and above all adhears to the sharepoint client object model

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.