We found workaround
But maybe there is a better way
Paging for Grid
$("#OlapClient").ejOlapClient({
displaySettings: displaySettings,
renderSuccess: function (olapClient) {
$("#Pager").remove();
let pagerDiv = ej.buildTag("div#Pager", "", { "margin-top": "10px" }, {})[0].outerHTML;
$(pagerDiv).appendTo(".outerTable");
$("#Pager").ejPivotPager({
mode: ej.PivotPager.Mode.Both,
targetControlID: "PivotGrid"
});
},
title: "Cube Browser",
url: "api/OlapClient"
});
plus code in OlapClientController
1. In InitializeGrid
var olapReport = OLAPUTILS.Utils.DeserializeOlapReport(parameters.CurrentReport);
olapReport.EnablePaging = true;
dataManager.SetCurrentReport(olapReport);
2.Paging method
public class PagingParameters
{
public string CurrentReport { get; set; }
public string Action { get; set; }
public string PagingInfo { get; set; }
public string GridLayout { get; set; }
public string ClientReports { get; set; }
}
[System.Web.Http.ActionName("Paging")]
[System.Web.Http.HttpPost]
public Dictionary<string, object> Paging(PagingParameters parameters)
{
var dataManager = new OlapDataManager(_connectionString);
var htmlHelper = new Syncfusion.JavaScript.PivotGrid();
dataManager.SetCurrentReport(htmlHelper.SetPaging(parameters.CurrentReport, parameters.PagingInfo));
return htmlHelper.GetJsonData(parameters.Action, dataManager, parameters.GridLayout);
}
Also found a bug
https://www.syncfusion.com/forums/javascript/ejpivotgrid/121914
In any case it does not work for the Chart
Its bad because browser hangs because of Chart rendering
Sorry for bad english