New to Telerik UI for ASP.NET Core? Download free 30-day trial
Binding to local data
Loading Demo...
- EXAMPLE
- VIEW SOURCE
- Edit in Theme Builder
-
Change Theme
default
- Main
- Main Dark
- Nordic
- Ocean Blue
- Purple
- Turquoise
- Main
- Main Dark
- Nordic
- Urban
- Vintage
- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
- Main
- Main Dark
- Opal
- Silver
local_data_binding.cshtml
Local_Data_BindingController.cs
ProductService.cs
ProductViewModel.cs
Also available for:
CLIENT-SIDE API SERVER-SIDE APIDescription
The Telerik Grid for ASP.NET Core offers two ways of data-binding:
- Ajax - the component performs server-side requests when doing paging, sorting and filtering. In this mode the grid retrieves only the data (in JSON format) representing the current page. As a result only the grid is updated.
- Client operations - set the DataSource
ServerOperations(false)
and allow the grid to perform all data operations on the client or pass the model via the view.
In this demo you can see how to bind the DataGrid for ASP.NET Core through a model passed by the View and perform all data operations on the client side.
To see all the available features of the gridview at a glance check the Telerik Grid for ASP.NET Core article.