Hello Michael,
The Telerik UI Grid HtmlHelper for ASP.NET Core is a server-side wrapper for the Kendo UI Grid widget. The code you have pointed to is an HmlHelper declaration of the Grid jQuery widget. In the browser, the HtmlHleper will render to the JavaScript.
Here is what each of the Grid HtmlHelper components refers to:
- <Model>
This is the model the Grid will bind to. This code:
@model IEnumerable<Kendo.Mvc.Examples.Models.ProductViewModel>
@using Kendo.Mvc.UI
@(Html.Kendo().Grid(Model)
Is equivalent to:
@(Html.Kendo().Grid<Kendo.Mvc.Examples.Models.ProductViewModel>()
- DataSource
The DataSource is an abstraction for using local data or remote data. In most cases, the DataSource definition is declared as part of the configurations for the Telerik UI HTML Helpers.
- ServerOperation(false)
When ServerOperation is enabled, all data operations like paging, sorting, grouping, etc. will be performed on the server-side. When they are disabled, those operations will be performed on the client and the entire data set will be available for the DataSource:
- Read.Data("getId")
Via the Data method, which specifies a JavaScript function, additional parameters can be sent to the Controller.
Let me know if you have further questions.
Regards,
Nikolay
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.