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

RadDatePicker FocusDate

1 Answer 123 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Effendi
Top achievements
Rank 1
Effendi asked on 21 Dec 2010, 01:44 PM
I couldnt find this anywhere. How do you set the focusdate to the current date or at least the calendar control to current month, when the picker is selected?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 22 Dec 2010, 03:53 PM
Hello Effendi,

Try setting the FocusedDate of the picker Calendar as below and see if this helps:
protected void Page_Load(object sender, EventArgs e)
{
    RadDatePicker1.Calendar.FocusedDate = DateTime.Now;
}

If you want to set default selected date for the RadDatePicker, use the SelectedDate property:
protected void Page_Load(object sender, EventArgs e)
{
    RadDatePicker1.SelectedDate = DateTime.Now;
}


Kind regards,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Calendar
Asked by
Effendi
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or