This is a migrated thread and some comments may be shown as answers.

Change language for the data range picker placeholder

3 Answers 9 Views
DateRangePicker
This is a migrated thread and some comments may be shown as answers.
n/a
Top achievements
Rank 1
n/a asked on 19 Dec 2020, 09:58 PM

I want to change the language of the placeholder from "day/month/year" to "día/mes/año".

Any way, how it can be done?

Greetings

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 Dec 2020, 04:10 PM

Hello,

 

You can achieve this requirement using the following approach:
https://dojo.telerik.com/EDuGIqeQ/7

I hope this will prove helpful.

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
n/a
Top achievements
Rank 1
answered on 04 Jan 2021, 06:58 PM

Ok thanks, but using that method overwrites the content of my daterangepicker when it loads data on the "range" attribute. I am creating the daterangepicker using the Html helper in the visual studio, this is my code:

@(Html.Kendo().DateRangePicker()
               .Name("datepicker1")
               .Messages(m => m.StartLabel("Fecha Inicio").EndLabel("Fecha Fin"))
               .Min(Model.FechaInicio)
               .Max(Model.FechaFin)
               .Range(r => r.Start(Model.Fecha1).End(Model.Fecha2))
               .Culture("es-ES")
               .Footer(" ")
               .Events(e => e.Change("updateView"))
            )

 

I am using some standard dates in "Min" and "Max" attributes to limit the range of dates that can be selected, and I am showing the selected dates in "Range" for informational proposes. In the "Event" I am using a Javascript method to send the selected range to the backend to later update the information of a dashboard in the Html. So what I want to validate is when a person wants to update the data from the dashboard by selecting a new range of dates, the placeholders of the inputs show "día/mes/año" instead of "day/month/year". I hope you can help me with this. 

0
Eyup
Telerik team
answered on 07 Jan 2021, 04:28 PM

Hello,

 

In this case, you can use the following alternative approach, which provides a better resolution overall for this case:
https://dojo.telerik.com/EDuGIqeQ/19

 

Regards,
Eyup
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
DateRangePicker
Asked by
n/a
Top achievements
Rank 1
Answers by
Eyup
Telerik team
n/a
Top achievements
Rank 1
Share this question
or