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

Change localization dinamically for datetimepicker

1 Answer 70 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Materovich
Top achievements
Rank 1
Veteran
Materovich asked on 12 Jan 2021, 05:22 PM

Hello,

In my app I'd like to be able of change the language of the labels in the datetimepicker dinamically (days of the week and months). I manage the localization with a custom service I made and it works for most of the app. I read the documentation and the aproach of setting the provider with an static locale_id value is ok but I need to change it in runtime.

Can you help me with this?

1 Answer, 1 is accepted

Sort by
0
Svet
Telerik team
answered on 14 Jan 2021, 09:25 AM

Hi Materovich,

Please check the following article that demonstrates how to change the application messages dynamically at runtime:

https://www.telerik.com/kendo-angular-ui/components/globalization/localization/messages/#toc-updating-messages-dynamically

The same approach applies for the DateTimePicker component.

I hope that helps.

Regards,
Svetlin
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
DateTimePicker
Asked by
Materovich
Top achievements
Rank 1
Veteran
Answers by
Svet
Telerik team
Share this question
or