Nikolay Kostov
Nikolay Kostov

Reputation: 16963

How to set parameterMap function globally for Kendo UI

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?

Upvotes: 0

Views: 40

Answers (0)

Related Questions