New to Telerik Reporting? Download free 30-day trial

Set DatePicker Culture in MVC Report Viewer

Environment

Product Progress® Telerik® Reporting

Description

The datepicker is a Kendo widget. That is why the Html5 MVC Report Viewer localization will not affect its date representation.

This KB article gives a brief description of how to set up another language. The example will demonstrate the date representation in Spanish.

Solution

  1. Add the following script after the script for the report viewer:

    <script src="http://kendo.cdn.telerik.com/2022.3.913/js/cultures/kendo.culture.es-PY.min.js"></script>
    
  2. 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("es-PY");
    </script>
    

    Demo

    A sample project can be found in our GitHub repository.

In this article