This is a migrated thread and some comments may be shown as answers.

Shared data source and virtual scrolling

0 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 1
Patrick asked on 06 Oct 2011, 03:46 PM
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: 
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.

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Patrick
Top achievements
Rank 1
Share this question
or