Defer update

24 May 20191 minute to read

IMPORTANT

This feature is applicable for the relational data source at server mode only.

The defer update support allows you to refresh the control only on-demand and not during every UI interaction.

  • HTML
  • <ej:PivotGrid ID="PivotGrid1" runat=server url="/RelationalService.svc" ClientIDMode="Static" >
        <ClientSideEvents AfterServiceInvoke="OnAfterServiceInvoke" /> </ej:PivotGrid>
    
    <ej:PivotSchemaDesigner ID="PivotSchemaDesigner" runat=server></ej:PivotSchemaDesigner>
    
    <script type="text/javascript">
        OnAfterServiceInvoke = function(evt) {
            if (evt.action == "initialize") {
                var PivotSchemaDesigner = $("#PivotSchemaDesigner").data('ejPivotSchemaDesigner');
                if (PivotSchemaDesigner.model.pivotControl == null) {
                    PivotSchemaDesigner.model.pivotControl = this;
                    PivotSchemaDesigner.model.enableWrapper = true;
                    PivotSchemaDesigner.model.layout = "excel";
                    PivotSchemaDesigner._load();
                }
            }
        }
    </script>

    Defer update support in ASP NET pivot grid control