I have a page that loads an ajax request into a mobilelistview. Everything works fine except the loadmore button appears no matter if there is more data or not. Here's my code:
I have confirmed total and pageSize return the correct information but even if total is 0 the load more button appears. Is this a kendo bug or have I done something screwy with the code?
$(document).ready(function () {
$("#memberList").kendoMobileListView({
dataSource: new kendo.data.DataSource({
pageSize: 10,
serverPaging: true,
schema: {
data: "Data",
total: "Total",
model: {
fields: {
CustomerID: { type: "string" },
EmailAddress: { type: "string" },
FirstName: { type: "string" },
LastName: { type: "string" },
MemberID: { type: "string" },
MemberTypeName: { type: "string" },
PlayerTypeName: { type: "string" }
}
}
},
transport: {
read: {
url: "@Url.Action("MemberListRead", "Club")",
type: "POST",
data: {
firstName: $('input[name="FirstName"]').val(),
lastName: $('input[name="LastName"]').val()
}
}
}
}),
template: kendo.template($("#memberTemplate").html()),
loadMore: true
});
});