DatePicker configuring the first day of week

5 posts, 0 answers
  1. Farhan
    Farhan avatar
    1 posts
    Member since:
    Feb 2012

    Posted 21 Feb 2012 Link to this post

    Is there any way to set the first day of week for kendoDatePicker?

    Thanks.
  2. Jean-Pascal van der Endt
    Jean-Pascal van der Endt avatar
    48 posts
    Member since:
    Jul 2010

    Posted 31 May 2012 Link to this post

    Hi Telerik,

    Setting the first day of the week for the calendar/datepicker control would be useful for me as well. I know it was available in the RadControls, so I hope there is a way to set it, or that it will be added in a future version.

    Please let us know.
  3. Kendo UI is VS 2017 Ready
  4. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2595 posts

    Posted 31 May 2012 Link to this post

    Hello Jean,

    The Kendo UI Calendar and DatePicker components depend on the current culture. You could configure them via the culture() method. For example you could set the first day of the week using the following code snippet: 
    <input id="datepicker" />
    ...
    <script>
    $(document).ready(function() {
      kendo.culture().calendar.firstDay= 2
      // create DatePicker from input HTML element
      $("#datepicker").kendoDatePicker();
      ....
    });
    </script>

    Kind regards,

    Iliana Nikolova
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  5. Morten
    Morten avatar
    267 posts
    Member since:
    Jul 2012

    Posted 28 Feb in reply to Iliana Nikolova Link to this post

    Hello Iliana

    I wanted to add:

    kendo.culture().calendar.firstDay = 2

    to my typescript file. However I'm getting an error message. Please see attached screen shot.

     

     

  6. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 03 Mar Link to this post

    Hello,

    appologies for misleading you. The firstDay field is part of the days object - like this:

      kendo.culture().calendar.days.firstDay= 2
     
    Regards,
    Petyo
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready