This KB illustrates that how to get the current data source of PivotGrid (Client Mode) at run-time. Solution:In general, data source can be obtained from the property - “args.model.dataSource”. The values inside the property will be updated on every operation in PivotGrid control. In the below code sample, the values inside property retrieved from the “renderSuccess” event. This event gets triggered every time after PivotGrid is refreshed. JavaScript:$(function () { $("#PivotGrid").ejPivotGrid({ //// renderSuccess: "rendersuccess", //// });}); function rendersuccess(args) { // You can get your data source here at run-time. var dataSource = args.model.dataSource;}
|
This page will automatically be redirected to the sign-in page in 10 seconds.