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

ASP.NET MVC PivotGrid Local Data Binding

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

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET MVC 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 a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources