Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lazy Load of Kendo UI Grid with scrollbar

How do I make a kendo grid load virtually?

Suppose I have 10,000 records and I want to display only 30 records when the page loads, how do I lazy load additional an additional block of 30 records when a user scrolls down? Just like the Facebook wall.

like image 271
Sunil Padhi Avatar asked Oct 04 '22 20:10

Sunil Padhi


1 Answers

I think you're looking for this demo here which describes how to set up the Kendo grid for virtualization with remote data, but in short you need to specify that the grid is to be virtualized on initialization.

$("#grid").kendoGrid({                
    scrollable: {
        virtual: true
    }
});
like image 190
Matt B Avatar answered Oct 10 '22 02:10

Matt B