pullToRefresh Boolean
(default: false)
If set to true, the listview will reload its data when the user pulls the view over the top limit.
Pull to refresh option is not compatible with native scrolling containers (view with
use-native-scrolling=true
or scroller withuse-native=true
attributes).
<div data-role="view">
<ul data-role="listview" data-source="foo" data-pull-to-refresh="true" data-template="foo-template"></ul>
</div>
<script type="text/x-kendo-template" id="foo-template">
#: name # - #: modified #
</script>
<script>
var i = 0;
// datasource below is customized for demo purposes.
var foo = new kendo.data.DataSource({
transport: {
read: function(options) {
var max = i + 5;
var data = [];
for (; i < max; i ++) {
data.unshift({ name: "record" + i, modified: +new Date() });
}
options.success(data);
}
}
});
new kendo.mobile.Application();
</script>