Open this page in the API Guide

DashboardCanvasService.invalidateAdhocTemplate Method

Invalidates the template by checking to ensure every cell has content and remove those that do not, and ensuring each adapter has a cell. This is a heavy call as it will re-create the entire template grid every time.