This sample shows how to use a server-side pivot engine to fetch and display summarized data in the Pivot Table. It includes export options for Excel, CSV, and PDF with headers and footers, and a layout switcher to toggle between Compact and Tabular views at runtime.
Grand Total | |
---|---|
Grand Total | No records to display |
The Pivot Table's server-side pivot engine (external pivot engine) uses the Syncfusion® package Syncfusion.Pivot.Engine to gather data from the data source and perform all pivot operations such as aggregation, filtering, sorting, grouping, and more on a separate hosted server and only paged data is sent to the pivot table viewport via web service. The dataSourceSettings->url property allows this web service URL to be connected to the pivot table. In this demo, the pivot table is shown with the virtualization option enabled through the enableVirtualization property and an external server engine. This would improve pivot table rendering performance when working with large amounts of data. The built-in toolbar includes export options for Excel, CSV, and PDF documents. These export features support adding headers and footers, enabling enriched document formatting and presentation. Additionally, a custom toolbar menu is provided to switch between Compact and Tabular layouts at runtime, offering flexibility in how the summarized data is displayed. Injecting Module: The pivot table features are segregated into individual modules. To use the virtual scrolling option, we need to inject the VirtualScroll module using the PivotView.Inject(VirtualScroll) method. More information about server-side aggregation can be found in this documentation section.