I am viewing a large amount of data in a grid but the creation of the grid takes place after the creation of the data source. For some reason, the grid will not enable virtual scrolling. Can virtual scrolling not be applied to a shared data source?
This will produce a table that does not scroll and I can only view the top entries that fit in the table:
If I switch scrollable to non virtual true, I can scroll through all the data but I will need virtual scrolling at some point.
This will produce a table that does not scroll and I can only view the top entries that fit in the table:
var
dataSource =
new
kendo.data.DataSource({data: [], pageSize: 50});
//This will be called many times before and after the grid is created
dataSource.data().unshift(obj);
$(
'#grid'
).kendoGrid( {
columns: [ .... ],
dataSource: dataSource,
height : 500,
scrollable : {
virtual :
true
}});
If I switch scrollable to non virtual true, I can scroll through all the data but I will need virtual scrolling at some point.