parametermap never get executed In my grid. I was wondering ifim doing something wrong here.
var dataSource = {
transport: {
read: function (options) {
var success = function (response) {
options.success(response);
};
_this.get('PopulateGridData')(success, options.data);
},
parameterMap: function (data, type) {
if (type === "read") {
return kendo.stringify(data);
}
},
},
pageSize: gridPageSize,
schema: gridSchema,
serverPaging: true,
serverSorting: true,
serverGrouping: true,
serverFiltering: true,
};
var gridOptions = {
dataSource: dataSource,
columns: gridColumns,
editable: gridEditable,
pageable: {
refresh: true, //if set to true, it will show refresh button,clicking on that will make the grid to refresh
numeric: false,
previousNext: false,
messages: {
display: "Loaded {0}-{1} from {2} data items"
},
},
height: gridHeight,
scrollable: {
virtual: true,
},
groupable: true,
filterable: true,
sortable: {
mode: "multiple"
},
};
var grid = Ember.$("#kendo-grid").kendoGrid(gridOptions).data('kendoGrid');