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

Week no. in DatePicker + change order of week days

1 Answer 495 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Sven
Top achievements
Rank 1
Sven asked on 08 Feb 2016, 07:48 AM

Hello,

 I'm about to import the datepicker in my Java (JSP) system but I first want to do some customization to the datepicker according to requirements from customer. However here I seem to have some trouble and have some questions to whether this is doable. What I want to do is to add week numbers in the beginning of each 'row' of the calendar, I understand that this is not something which is supported 'on the fly' by Kendo UI datepicker, and I also want to change the order of the days in the calendar so that the week starts at Monday instead of Sunday, which is the original implementation. See attached picture.

 

Are these things doable by customizing the template somehow, like customizing the JSP page here: http://demos.telerik.com/jsp-ui/datetimepicker/template

I've also found the following forum post which, I figure, seems to have the same problem/question.

 

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 10 Feb 2016, 09:51 AM
Hello Sven,

In general, the the starting week day is configured based on the kendo culture used on the client. The default one is "en-US", but the widget allows to define different culture, e.g. "de-DE", where the first day of week is Monday: Note that you need to include the related kendo culture script in the page:
With regards to the "Week numbers" request, I am afraid that it is not supported and the only feasible solution is to create a separate custom view. Tweaking the existing one will not be solution in this case, as we need to change the rendering as a whole. I would suggest you vote for this functionality here:
Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Date/Time Pickers
Asked by
Sven
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or