Hi,
Using:
Kendo UI Beta v2013.2.716
PhoneGap 3.0.0-0.14.0
I have a ListView that will freeze the scrolling when the datasource data changes, and if the user is scrolling at the time the data refresh occurs:
//This is some fake data
var zoneData = [
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'}
];
//The data source
var theDataSource = kendo.data.DataSource.create({
data: zoneData
});
//This is how the listview is initialized when the view loads
$('#statusZoneRows').kendoMobileListView({
dataSource: theDataSource,
template: $('#statusZoneRowTemplate').html(),
headerTemplate: $('#statusZoneRowHeaderTemplate').html()
});
//This is how the dataSource is updated later on in the app ...
zoneData.push({zoneNumber: 2, zoneName: 'A new name', group: '1-9'});
theDataSource.data(zoneData);
Does anyone know why would the the scrolling freeze up when the data is added? Again this seems on only happen if the user is scrolling.
Thanks
Using:
Kendo UI Beta v2013.2.716
PhoneGap 3.0.0-0.14.0
I have a ListView that will freeze the scrolling when the datasource data changes, and if the user is scrolling at the time the data refresh occurs:
//This is some fake data
var zoneData = [
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'},
{zoneNumber: 1, zoneName: 'name', group: '1-9'}
];
//The data source
var theDataSource = kendo.data.DataSource.create({
data: zoneData
});
//This is how the listview is initialized when the view loads
$('#statusZoneRows').kendoMobileListView({
dataSource: theDataSource,
template: $('#statusZoneRowTemplate').html(),
headerTemplate: $('#statusZoneRowHeaderTemplate').html()
});
//This is how the dataSource is updated later on in the app ...
zoneData.push({zoneNumber: 2, zoneName: 'A new name', group: '1-9'});
theDataSource.data(zoneData);
Does anyone know why would the the scrolling freeze up when the data is added? Again this seems on only happen if the user is scrolling.
Thanks