I am working with the datasource control and I am trying to query a webservice and need to pass a start date from a Kendo datepicker. When it is sent I get an error - Invalid JSON Primitive. Any help would be appreciated, thanks. Here is my code:
var dataSource = new kendo.data.DataSource({
transport: {
read: {
url: '/app/handlers/customers.asmx/GetTopAssignedCustomers',
dataType: "json",
data: startDate: function(){return kendo.toString(new Date(start.value()), "MM/dd/yyyy");},
contentType: 'application/json; charset=utf-8',
type:"POST"
}
},
schema: {
data:"d"
}
});