New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core PivotGrid Local Data Binding

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
local_flat_data_binding.cshtml
Local_Flat_Data_BindingController.cs
ProductService.cs
ProductViewModel.cs

Also available for:

CLIENT-SIDE API HTML HELPER API

Description

The Telerik UI for ASP.NET Core PivotGrid control supports local data binding which processes and creates a cube representation (configuration).

To implement local data binding, you need to return a data collection from the Controller to the View and bind the model by using the built-in BindTo() configuration method.

For example:

  1. Add a Model representation of the data.
  2. Obtain the existing records and map them to the previously defined Model incarnation.
  3. Pass them into the View
  4. Use the .BindTo() configuration method to bind the Model.

This example showcases how to populate the PivotGrid with local flat data and also features filtering and sorting of rows and columns. To sort the PivotGrid rows and columns, click on the fields in the headers or the field menu, or use the PivotGrid Configurator.

Additional Apps

This PivotGrid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources