Skip to content

Custom implementation of virtual scrolling in Kendo-grid to support grouping and editing

License

Notifications You must be signed in to change notification settings

dulanja33/Kendo-grid-virtual-scrolling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coverity Scan Build Status

Kendo-grid-virtual-scrolling

Custom implementation of virtual scrolling in Kendo-grid to support grouping and editing.

How to add

var kendoGridVS = require('kendo-grid-virtual-scrolling');

In normal browser usage

provide the <version>

<script src="https://unpkg.com/kendo-grid-virtual-scrolling@<version>/dist/Kendo-Grid-VirtualScroll.js"></script>

How to use

Can be use inside dataBound event in Kendo-Grid.

//set this as global variable and set true if grid is reload/change grouping etc..
initDataBound = true;
//when support sort, set initDataBound=true in sort event(Kendo grid event)
 sort: function(e) {
     initDataBound = true; 
 }
//when support group, set initDataBound=true in group event(Kendo grid event)
 group: function(e) {
     initDataBound = true; 
 }

//databound event in kendo-grid
dataBound: function(e){
     if (initDataBound) {
               initDataBound = false;
               kendoGridVS({
                 gridElement: e.sender.element,
           });
      }
}

MIT License

About

Custom implementation of virtual scrolling in Kendo-grid to support grouping and editing

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •