How to set parameterMap function globally for Kendo UI

34 Views Asked by At

I want to inject this code globally in all parameterMap functions for all Kendo data sources:

for (var key in data) {
    if (data.hasOwnProperty(key) && data[key] instanceof Date) {
        // Convert the date object to a string using a standard ISO-8601 format
        data[key] = kendo.toString(data[key], "yyyy-MM-ddTHH:mm:ss.fffZ");
    }
}

How can I do that?

0

There are 0 best solutions below