Lazy loading in koGrid

Below is the code for implementing Lazy loading in koGrid. Here is a working plunker. You can download the code from here.



    
    Lazy loading in koGrid
    

    
    
    
    
    





    

Here I have modified the example given on koGrid examples page for server side paging, but to get the real advantage of on-demand loading you need to fetch paged and filtered data from the server itself. For that you can take help from my another post on server side paging in koGrid and you might need to update the "getPagedDataAsync" function in above code accordingly.




No comments:

Post a Comment