kendo-grid-virtual-scrolling
v1.0.8
Published
Custom implementation of virtual scrolling in Kendo-grid to support grouping and editing
Downloads
6
Readme
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,
});
}
}