The commented part will lie under $scope.$on. I need to return options to the place where I have kept $scope.$emit. Please HELP!!!
if (gridConfig.Batch) {
gridOption.dataSource.transport["parameterMap"] = function (options, operation) {
var data = {
options: options,
operation: operation
};
$scope.$emit('parameterMap', data);
//if (operation !== "read" && options.models) {
// angular.forEach(options.models, function (value) {
// value.MfgDt = kendo.toString(value.MfgDt, "s");
// value.ExpDt = kendo.toString(value.ExpDt, "s");
// value.ProductType = value.ProductType.Id;
// })
// return options;
//}
}
}