We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to enable paging in PivotGrid?

Platform: jQuery |
Control: ejPivotGrid

This KB illustrates that how to enable paging for PivotGrid.


You can enable pager for PivotGrid with respective to JS, ASP and MVC platforms using the following code example.


Set EnablePaging to “True” and, SeriesPageSize as well as CategorialPageSize to a definite number, in the OLAP Report.


<script type="text/javascript">
$("#PivotGrid1").ejPivotGrid({ url: "../wcf/PagingService.svc });
            mode: ej.PivotPager.Mode.Both,
            targetControlID: "PivotGrid1"




<ej:PivotGrid ID="PivotGrid1" Url="../wcf/OLAPService.svc" runat="server"></ej:PivotGrid>
<ej:PivotPager ID="PivotPager1" Mode="Both" TargetControlID="PivotGrid1"></ej:PivotPager>


private OlapReport CreateOlapReport()
            OlapReport olapReport = new OlapReport();
            olapReport.CurrentCubeName = "Adventure Works";
            olapReport.EnablePaging = true;
            olapReport.PagerOptions.SeriesPageSize = 20;
            olapReport.PagerOptions.CategorialPageSize = 15;
            DimensionElement dimensionElement = new DimensionElement() { Name = "Customer" };
            dimensionElement.AddLevel("Customer", "Customer");
            DimensionElement dimensionElementRow = new DimensionElement() { Name = "Customer", HierarchyName = "Customer" };
            dimensionElementRow.AddLevel("Customer Geography", "Country");
            MeasureElements measureElementColumn = new MeasureElements();
            measureElementColumn.Elements.Add(new MeasureElement { Name = "Internet Sales Amount" });
            return olapReport;


Private Function CreateOlapReport() As OlapReport
 Dim olapReport As OlapReport = New OlapReport()
 olapReport.CurrentCubeName = "Adventure Works"
 olapReport.EnablePaging = True
 olapReport.PagerOptions.SeriesPageSize = 20
 olapReport.PagerOptions.CategorialPageSize = 15
 Dim dimensionElement As DimensionElement = New DimensionElement() With {.Name = "Customer"}
 dimensionElement.AddLevel("Customer", "Customer")
 Dim dimensionElementRow As DimensionElement = New DimensionElement() With {.Name = "Customer", .HierarchyName = "Customer"}
 dimensionElementRow.AddLevel("Customer Geography", "Country")
 Dim measureElementColumn As MeasureElements = New MeasureElements()
 measureElementColumn.Elements.Add(New MeasureElement With {.Name = "Internet Sales Amount"})
 Return olapReport
End Function


You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile