parameterMap: function (data, operations) {
var paramMap = kendo.data.transports.odata.parameterMap(data);
if (paramMap.$inlinecount) {
if (paramMap.$inlinecount == "allpages") {
paramMap.$count = true;
}
delete paramMap.$inlinecount;
}
if (paramMap.$take) {
paramMap.$top = paramMap.$take;
delete paramMap.$take;
}
if (paramMap.$filter) {
paramMap.$filter = paramMap.$filter.replace(/substringof\((.+),(.*?)\)/, "contains($2,$1)");
}
return paramMap;
}
You can contact for any type of query related to asp.net, C#, MVC,WCF,Jquery and AngularJS Follow me on - GitHub - https://github.com/mesan21ster/ YouTube Channel - https://www.youtube.com/user/mesan21ster/ Site : - https://sites.google.com/view/4dotnet
Tuesday, April 16, 2019
How to replace kendo grid odata parameter using parametermap
Subscribe to:
Posts (Atom)