I am getting an InvalidJSONprimitive error that's driving me crazy. Here's the code - any ideas what I am missing?
I've also tried passing the ID parameter as a string (data: '{"ID":"' + 999 + '"}'
), and changing dataType to text - same error.
Thanks in advance!
var params = {ID: 999};
$(document).ready(function () {
$('#ddl').kendoComboBox({
filter: "contains",
dataTextField : "DBA",
dataValueField: "ID",
dataSource: {
transport: {
read: {
type: "POST",
cache: false,
data: JSON.stringify(params),
url: "../webservices/data.asmx/GetDBA",
contentType: "application/json; charset=utf-8",
dataType: "json"
}
}
}
});
});