Hi,
I am using a kendo Mobile listview with endless scrolling turned on.
My datasource schema model looks like this (Notice the "from" converting the server side "Title" to client side "title"):
my sort field is defined like this:
I use odata and perform some parameter mapping like so:
During the first request, the order field name is "Title" as it should be, however, loading the subsequent pages (endless scrolling), the order parameter is passed in as "title" and fails the request.
Is this a bug or misconfiguration?
Thanks, Vincent
I am using a kendo Mobile listview with endless scrolling turned on.
My datasource schema model looks like this (Notice the "from" converting the server side "Title" to client side "title"):
1.
fields:
2.
{
3.
title: { type:
"string"
, from:
"Title"
},
sort: [{ field:
"title"
, dir:
"desc"
}],
I use odata and perform some parameter mapping like so:
parameterMap:
function
(parameters, type) {
var
params = kendo.data.transports[
"odata"
].parameterMap(parameters, type);
if
(type ==
"read"
) {
params.format =
"json"
;
params.$expand = allOptions.expand.join(
','
);
params.$select = allOptions.select.join(
','
);
params.page = parameters.page;
params.skip = parameters.skip;
params.take = parameters.take;
params.pageSize = parameters.pageSize;
}
return
params;
}
Is this a bug or misconfiguration?
Thanks, Vincent