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

ASP.NET Core Grid Web API Binding

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
webapi.cshtml
WebApiController.cs
ProductService.cs
ProductViewModel.cs
Webapi_TagHelper.cshtml

Description

The Telerik UI for ASP.NET Core Grid supports the implementation of the CRUD (Create, Read, Update, Destroy) data operations and a WebAPI controller. A WebAPI is a concept referring to APIs over the web, which can be accessed through the HTTP protocol and which are typically used with JavaScript. A WebAPI controller manages the incoming HTTP requests and sends back a response to the caller.

This demo shows how to bind the Data Grid in a WebAPI. By specifying the DataSource type as .WebApi(), the requests will be sent to the endpoints of the WebAPI in the expected format out of the box.

For more information, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on WebAPI editing.

Additional Apps

This Grid 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