PivotGrid WebForms Data Binding From Database

Hi

I need to know how I can use pivot grid with data Binding from Database for a WebForms Application

Thanks

1 Reply

MM Manikandan Murugesan Syncfusion Team December 14, 2017 02:16 PM UTC

Hi Olman, 
 
You can bind data from database using AJAX method in “load” event. Please refer below code snippet. 
Code Snippet: [aspx] 
<ej:PivotGrid ID="PivotGrid1" runat="server" ClientIDMode="Static" EnableGroupingBar="true" PivotTableFieldListID="PivotSchemaDesigner"> 
        <ClientSideEvents Load="onLoad" /> 
    </ej:PivotGrid> 
 
Code Snippet: [javascript] 
function onLoad(args) { 
    args.model.dataSource.data = pivot_dataset; 
    //Here you can get data from database using AJAX method. 
} 
 
Meanwhile, we have prepared prototype sample. Please find the sample in below link. 
 
 
Thanks, 
Manikandan. 


Loader.
Up arrow icon