Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
Free Tools
Support and Learning
Productivity and Design Tools
I want to show the data coming from web api by paginating in kendo grid?
Hello Sezer,
You could achieve the desired result as per the example below:
//View @(Html.Kendo().Grid<GridViewModel>() .Name("grid") ... .Pageable() //enable the paging .DataSource(dataSource => dataSource .WebApi() //configure the WebApi DataSource .Model(model => { model.Id(p => p.ProductID); // Specify the property which is the unique identifier of the model. }) .Read(read => read.Action("Get", "Product")) ) ) //Controller [Route("api/[controller]")] public class ProductController : Controller { // GET: api/values [HttpGet] public DataSourceResult Get([DataSourceRequest]DataSourceRequest request) //Get Method { return service.Read().ToDataSourceResult(request); } }
Check out the complete implementation in the online demo:
https://demos.telerik.com/aspnet-core/grid/webapi
If you have any questions, feel free to let me know.
Regards, Mihaela Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.