HtmlWorkshop

HtmlWorkshop

ReloadParentWebpart Overview

This service accepts no input and is used to reload the parent WebPart (which it can target without given a WebPartId). If this is called from within a button process, it will reload the webpart in which the button exists.

In most cases this is done after a process has run that has changed data that is being displayed on the page. We reload the parent webpart so that the data displayed on the page is up to date and reflects the actual stored data.

There are other ways to reload specific areas of the page so that the data displayed on the page is up to date, but the benefit of using this service is that one only service needs to be called. This can be helpful if you have to update multiple things in a webpart after clicking a button. If the parent WebPart is relatively small, this will not impact performance. However, if the WebPart has many components to it, this will rerun all associated datasources and on load processes. Be aware of how this is affecting your page load time. You may want to reload the areas of the webpart separately instead.