Introduction
When working with large data in web applications, displaying data in a simple HTML table becomes difficult.
We need features like:
Paging
Sorting
Filtering
Endless scrolling
Searching
To solve this problem, developers use Kendo UI Grid.
Kendo Grid is one of the most popular UI components used in ASP.NET MVC and jQuery applications.
In this article, you will learn:
What Kendo Grid is
Why we use it
Important grid properties
Endless scrolling
Fetching 50-50 records
Real examples with explanation
What is Kendo Grid?
Kendo Grid is a powerful table component provided by Progress Telerik.
It helps display data with advanced features using less code.
Why Use Kendo Grid?
✔ Professional UI
✔ Easy data handling
✔ Built-in paging & filtering
✔ Fast development
Step 1: Add Kendo UI Files
<link href="https://kendo.cdn.telerik.com/2024.1.130/styles/kendo.default-v2.min.css" rel="stylesheet" />
<script src="https://kendo.cdn.telerik.com/2024.1.130/js/kendo.all.min.js"></script>
Step 2: Create HTML Div
<div id="grid"></div>
Step 3: Create Grid
$("#grid").kendoGrid({
dataSource: {
transport: {
read: {
url: "/Home/GetStudents",
dataType: "json"
}
},
pageSize: 50
},
height: 550,
pageable: true,
sortable: true,
filterable: true,
scrollable: true,
columns: [
{ field: "StudentId", title: "ID", width: 100 },
{ field: "StudentName", title: "Name" },
{ field: "City", title: "City" }
]
});
Output
Grid features:
✔ Paging
✔ Sorting
✔ Filtering
✔ Scrollable grid
Important Kendo Grid Properties Explained
pageable
pageable: true
👉 Enables pagination
sortable
sortable: true
👉 Allows column sorting
filterable
filterable: true
👉 Adds filter option
scrollable
scrollable: true
👉 Enables scrolling
groupable
groupable: true
👉 Group data by column
selectable
selectable: true
👉 Select row
resizable
resizable: true
👉 Resize columns
Join the conversation! Your thoughts help the community grow.