• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Localization
*Translated by Google Translator.
Currency
Essential Studio
HOME
All Controls

Example of Custom Sorting in ASP.NET Core Pivot Table Control

This sample demonstrates ordering used-defined member(s), aka header name(s), of specific field in row and column axes in ascending or descending order.

DEMO
SOURCE
Field:
Headers:
Order:

In this sample, any field from the Field dropdown list and its member(s), aka header name(s), from the Headers dropdown list can be ordered ascending or descending. It is possible to achieve this by setting the enableSorting property to true, as well as the field name, sort order, and member(s) (which can be in any order) inside the pivot table's sortSettings property. The dataSourceSettings includes enableSorting and sortSettings properties.

Transform your ASP.NET Core web apps today with Syncfusion ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE