I want to bind a combobox to a remote odata service to do a case insensitive search of the dataTextField. Setting ingoreCase property doesn't seem to do anything. So I'm trying to set up a custom query string like this /Countries?$filter=startswith(tolower(Name),tolower('Ca'))
explained in this stackoverflow post using parameterMap function but cant seem to get my function right. What should be the correct parameterMap function.
explained in this stackoverflow post using parameterMap function but cant seem to get my function right. What should be the correct parameterMap function.
.kendoComboBox({
dataTextField:
"Description"
,
dataValueField:
"Code"
,
minLength: 3,
autoBind:
false
,
dataSource: {
type:
"odata"
,
serverPaging:
true
,
pageSize: 30,
transport: {
read: {
url: odataUrl,
dataType:
"json"
},
parameterMap:
function
(options) {
if
(options.filter) {
var
thisfilter = filter.filters[0];
return
{ filter: thisfilter.operator +
"(tolower('"
+ thisfilter.value +
"'), tolower("
+ thisfilter.field };
}
}
}
}
});
What should the parameterMap function return?