Edit this page

Access the Embedded RadCalendar on the Server

The popup calendar in RadScheduler is actually RadCalendar and is a child control of RadScheduler. The ID of the embedded RadCalendaris "SelectedDateCalendar", so getting a reference to it on the server-side can be done easily in RadScheduler's PreRender event as shown below:


protected void RadScheduler1_PreRender(object sender, EventArgs e)
{
    RadCalendar popupCalendar = RadScheduler1.FindControl("SelectedDateCalendar") as RadCalendar;
    popupCalendar.ShowOtherMonthsDays = true;
}  


Protected Sub RadScheduler1_PreRender(ByVal sender As Object, ByVal e As EventArgs)
    Dim popupCalendar As RadCalendar = TryCast(RadScheduler1.FindControl("SelectedDateCalendar"), RadCalendar)
    popupCalendar.ShowOtherMonthsDays = True
End Sub