Introduction
This blog tells you the use of view function in Kendo Grid. To explain it, I am going to use Kendo Grid, which is a remote bind.
Kendo Grid with remote binding
Create a new HTML page. In my case, I named it as KendoGrid.html and write the code given below in it.
KendoGrid.html
This blog tells you the use of view function in Kendo Grid. To explain it, I am going to use Kendo Grid, which is a remote bind.
Kendo Grid with remote binding
Create a new HTML page. In my case, I named it as KendoGrid.html and write the code given below in it.
KendoGrid.html
- <!DOCTYPE html>
- <html>
- <head>
- <title>Kendo Grid</title>
- <meta charset="utf-8" />
- <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.common.min.css" />
- <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.rtl.min.css" />
- <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.silver.min.css" />
- <link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.1.118/styles/kendo.mobile.all.min.css" />
- <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
- <script src="http://kendo.cdn.telerik.com/2017.1.118/js/kendo.all.min.js"></script>
- </head>
- <body>
- <div id="example">
- <div id="grid"></div>
- <script>
- $(document).ready(function() {
- $("#grid").kendoGrid({
- dataSource: {
- type: "json",
- transport: {
- read: "/api/Employee/EmployeeList"
- },
- schema: {
- model: {
- fields: {
- EmployeeID: {
- type: "number"
- },
- EmployeeName: {
- type: "string"
- },
- Designation: {
- type: "string"
- },
- Company: {
- type: "string"
- }
- }
- }
- },
- },
- filterable: true,
- sortable: true,
- pageable: true,
- columns: [{
- field: "EmployeeID",
- filterable: false
- }, {
- field: "EmployeeName",
- title: "EmployeeName",
- filterable: { multi: true, search: true }
- }, {
- field: "Designation",
- title: "Designation"
- }, {
- field: "Company",
- title: "Company",
- }]
- });
- });
- </script>
- </div>
- </body>
- </html>
Please refer to my provious article to get to know how to create a WEB API and remote bind the response in Kendo Grid DataSource.
Result in Browser
Result in Browser


Manav PandyaPosted Apr 14, 2017, 8:15 AM
Nice ........................