New to Telerik UI for ASP.NET MVC? Download free 30-day trial
ASP.NET MVC PivotGrid Local Data Binding
- 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
- 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
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.