DateTimePicker and First Day of the week

4 posts, 1 answers
  1. John Giblin
    John Giblin avatar
    155 posts
    Member since:
    Jan 2006

    Posted 02 Sep 2010 Link to this post

    If there a way to change the first day of the week for the datetimepicker in winforms
  2. Answer
    Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 07 Sep 2010 Link to this post

    Hi John Giblin,

    Thank you for writing.
     
    If I understand your task, you want to change the first day of the week in the calendar of the RadDateTimePicker. To do this, you should get the RadCalendar object from the RadDateTimePicker object and change its property FirstDayOfWeek.
     
    RadCalendar datetimePickerCalendar = (this.radDateTimePicker1.DateTimePickerElement.GetCurrentBehavior() as RadDateTimePickerCalendar).Calendar;
    datetimePickerCalendar.FirstDayOfWeek = FirstDayOfWeek.Monday;
     
    If you have other questions, feel free to contact us.

    Regards,
    Dobry Zranchev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. John Giblin
    John Giblin avatar
    155 posts
    Member since:
    Jan 2006

    Posted 07 Sep 2010 Link to this post

    Thanks.  That worked.  Any reason it is not a property of the control?
  5. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 11 Sep 2010 Link to this post

    Hello John Giblin,

    This is a property but of RadCalendar, because it is related to it.

    For further assistance, feel free to contact us.

    Greetings,
    Dobry Zranchev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top