If I configure a datasource to query a web service (.asmx) with a group method, it sends a Request Body of
group%5B0%5D%5Bfield%5D=MaximoRequestNumber&group%5B0%5D%5Bdir%5D=asc
Which causes an Invalid JSON primitive error. Is there a way to group the data without having the dataSource send the grouping option to the service? I know that I can group in the grid's dataBound method, but if I refresh the dataSource, it sends the dreaded group string as non-JSON text in the Request Body and it errors.
group%5B0%5D%5Bfield%5D=MaximoRequestNumber&group%5B0%5D%5Bdir%5D=asc
Which causes an Invalid JSON primitive error. Is there a way to group the data without having the dataSource send the grouping option to the service? I know that I can group in the grid's dataBound method, but if I refresh the dataSource, it sends the dreaded group string as non-JSON text in the Request Body and it errors.
var readOrdersSource = new kendo.data.DataSource({
transport: {
read: {
url: webServiceBaseUrl + "getOrderedTransformers",
contentType: 'application/json; charset=utf-8',
type: "POST",
dataType: "json"
}
},
schema: {
data: "d",
model: {
id: "id",
fields: {
id: { type: "number" },
MaximoItemNumber: { type: "string" },
MaximoRequestNumber: { type: "string" },
AddedBy: { type: "string" },
AddDate: { type: "datetime" },
KVA: { type: "number" },
PrimaryVoltage: { type: "string" },
SecondaryVoltage: { type: "string" },
OilType: { type: "string" },
Phase: { type: "number" }
}
}
},
group: {
field: "MaximoRequestNumber"
},
parameterMap: function (options) {
return JSON.stringify(options)
}
});