Change the culture of Kendo DatePicker widget in the parameters area of the HTML5 Report Viewer
Environment
Product Version | 13.0.19.222 |
Product | Progress® Telerik® Reporting |
Description
The datepicker is a Kendo widget. That's why the Html5 Report Viewer (or any other Web-based viewer) localization will not affect its date representation. This KB article gives a brief description of how to set another language. The example will demonstrate the date representation in French.
Solution
-
Add the following script in the web page which holds the report viewer:
<script src="http://kendo.cdn.telerik.com/VERSION/js/cultures/kendo.culture.fr-FR.min.js"></script>
For example:
<script src="http://kendo.cdn.telerik.com/2019.1.115/js/cultures/kendo.culture.fr-FR.min.js"></script>
A list with all versions can be found here.
-
Then the culture of the Kendo widget must be set through the script below which should be placed before the report viewer's initialization:
<script type="text/javascript"> kendo.culture("fr-FR"); </script>