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

DateTimePicker and First Day of the week

3 Answers 379 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
John Giblin
Top achievements
Rank 1
John Giblin asked on 03 Sep 2010, 03:49 AM
If there a way to change the first day of the week for the datetimepicker in winforms

3 Answers, 1 is accepted

Sort by
0
Accepted
Dobry Zranchev
Telerik team
answered on 07 Sep 2010, 12:14 PM
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
0
John Giblin
Top achievements
Rank 1
answered on 07 Sep 2010, 11:01 PM
Thanks.  That worked.  Any reason it is not a property of the control?
0
Dobry Zranchev
Telerik team
answered on 11 Sep 2010, 09:42 AM
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
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
John Giblin
Top achievements
Rank 1
Answers by
Dobry Zranchev
Telerik team
John Giblin
Top achievements
Rank 1
Share this question
or