0
我有以下Kendo UI網格的parameterMap屬性。我想傳遞額外的數據來告訴網格中每一列的數據類型。 我該怎麼做?在Kendo UI Grid中傳遞數據類型parameterMap
parameterMap: function (data, operation) {
if (operation != "read") {
// web service method parameters need to be send as JSON. The Create, Update and Destroy methods have a "products" parameter.
return JSON.stringify({ products: data.models })
} else {
// web services need default values for every parameter
data = $.extend({ sort: null, filter: null }, data);
return JSON.stringify(data);
}
}