We have updated WebDataRocks EULA, effective as of April 18, 2024. Learn more about what's changed.
Documentation menu

refresh

refresh()

This API call redraws the component.

Use it when you need to apply results of the following API calls:

  • setOptions()

Example

Hide subtotals from the grid by setting a showTotals option to false and redraw the pivot table using refresh():

webdatarocks.setOptions({
	grid: {
		showTotals: false
	}
});
webdatarocks.refresh();

See the CodePen example with refresh().

See also