使用 KENDO UI MOBILE 当我向下滚动内容时,如何让过滤框始终可见?
function mobileListViewEndlessScrolling() {
var dataSource = new kendo.data.DataSource({
pageSize: 40,
serverPaging: true,
serverFiltering: true,
transport: {
read: {
url: "http://search.twitter.com/search.json?rpp=1&page=1&q=koi", // the remove service url
dataType: "jsonp" // JSONP (JSON with padding) is required for cross-domain AJAX
},
parameterMap: function(options) {
var filter = options.filter ? options.filter.filters[0].value : "";
var parameters = {
q: filter, //additional parameters sent to the remote service
rpp: options.pageSize,
page: options.page //next page
}
return parameters;
}
//http://localhost:50833/Service1.svc/GetLocalita.json?q=&rpp=10&page=1
},
schema: { // describe the result format
data: "results" // the data which the data source will be bound to is in the "results" field
}
});
$("#endless-scrolling").kendoMobileListView({
dataSource: dataSource,
template: $("#endless-scrolling-template").text(),
filterable: true,
endlessScroll: true,
scrollTreshold: 30 //treshold in pixels
});
}