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
- Change Theme defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Material 2
- Material 2 Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
- Main Dark
local_flat_data_binding.cshtml
Local_Flat_Data_BindingController.cs
ProductService.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
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:
- Add a Model representation of the data.
- Obtain the existing records and map them to the previously defined Model incarnation.
- Pass them into the
View - 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.