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

Date Picker - Selected Date

2 Answers 140 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 14 Apr 2011, 02:40 PM
I know that I can set the selected date of the date picker in the properties window under the "Date Selection"  section but I want to set the date in the code behind, how do you do that?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Dean
Top achievements
Rank 2
answered on 15 Apr 2011, 05:49 AM
You can change the controls SelectedDate property in code-behind like this for example.

RadDatePicker1.SelectedDate = Date.Today

0
John
Top achievements
Rank 1
answered on 15 Apr 2011, 12:45 PM
Thanks
Tags
Calendar
Asked by
John
Top achievements
Rank 1
Answers by
Dean
Top achievements
Rank 2
John
Top achievements
Rank 1
Share this question
or