Hi there,
i made an iOS App, where I´m using the Mobile List View and Pull to refresh, without any Problems.
After porting my App to Android I ran into problems with the loading spinner. There is no Javascript error and the content gets refreshed as expected but the spinner isn't hiding after the refresh. My Code looks like this:
Tested Devices:
HTC ONE - Android 4.0.3 (real device)
NEXUS ONE - Android 4.2.2 (AVD)
i made an iOS App, where I´m using the Mobile List View and Pull to refresh, without any Problems.
After porting my App to Android I ran into problems with the loading spinner. There is no Javascript error and the content gets refreshed as expected but the spinner isn't hiding after the refresh. My Code looks like this:
01.
var
dataSource =
new
kendo.data.DataSource({
02.
transport: {
03.
read: {
04.
url:
"URL.TO.MY.SERVER"
,
05.
contentType:
"application/json; charset=utf-8"
,
06.
type:
"GET"
,
07.
dataType:
"jsonp"
,
08.
data: {
09.
foo:
"bar"
,
10.
type:
"start"
,
11.
device: deviceID
12.
}
13.
}
14.
}
15.
});
16.
17.
$(
"#listView"
).kendoMobileListView({
18.
dataSource: dataSource,
19.
template: kendo.template($(
"#template"
).html()),
20.
pullToRefresh:
true
,
21.
pullTemplate:
"Zum Aktualisieren runterziehen"
,
22.
releaseTemplate:
"Zum Aktualisieren loslassen"
,
23.
refreshTemplate:
"Aktualisiert..."
24.
});
Tested Devices:
HTC ONE - Android 4.0.3 (real device)
NEXUS ONE - Android 4.2.2 (AVD)