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

Date Format Swedish

3 Answers 129 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Rob asked on 30 Oct 2016, 09:15 PM

Hi Guys

I have been told the format of the dates at the top of the 'weekly' view is wrong by the customers in Sweden.. but I don't see anywhere in the culture file to amendit

Please see screen shot attached.. it should be .. "short day of week", then the day and then the Month.. not the "short day of week", Month and day.

How can I change this please?

Thanks

Rob

 

 

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Danchev
Telerik team
answered on 01 Nov 2016, 04:30 PM
Hello Rob,

You can display the dates in this format by setting the views' DateHeaderTemplate as shown below:
.Views(views =>
{
    views.DayView(d => d.DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd/MM')#</span>"));
    views.WeekView(w => w.DateHeaderTemplate("<span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd dd/MM')#</span>"));
    views.MonthView();
    views.AgendaView();
})


Regards,
Ivan Danchev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
answered on 02 Nov 2016, 01:07 AM

Thanks Ivan..

face palm moment.. I assumed it was going to be locale thing!

 

0
Ivan Danchev
Telerik team
answered on 03 Nov 2016, 12:06 PM
Hello Rob

I am glad we were able to help. You can find more information about the different types of templates (the dateHeaderTemplate including) and about other Scheduler configuration options, methods and events in the widget's API reference section of the documentation.

Regards,
Ivan Danchev
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Tags
Scheduler
Asked by
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Answers by
Ivan Danchev
Telerik team
Rob
Top achievements
Rank 2
Iron
Veteran
Iron
Share this question
or