RadControls for WinForms

 Event

 Description

ElementRender

The event handler receives an argument of type RenderElementEventArgs containing data related to this event. The following RenderElementEventArgs properties provide information specific to this event.

PropertyDescription
Day Gets a refference to the RadCalendarDay logical object that represents the specified day to render.
Element Gets a refference to the LightVisualElement object that represents visually the specified day to render.
View Gets a refference to the CalendarView object currently displayed by RadCalendar, that contains the specified day to render.
SelectionChangingThis event is fired just prior to a selection change and allows you to programmatically cancel the change. The SelectionEventArgs passed to this event include Date, a DateTimeCollection of selected dates and Cancel that can be set to true to disallow the selection from being changed.
SelectionChanged

This event is fired when a day, week, month or year is changed.

Copy[C#] Responding to SelectionChanged
void radCalendar1_SelectionChanged(object sender, EventArgs e)
{
    radListControl1.Items.Add(new RadListDataItem(radCalendar1.SelectedDate.ToShortDateString().ToString()));
}
Copy[VB.NET] Responding to SelectionChanged
Private Sub radCalendar1_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
    radListControl1.Items.Add(New RadListDataItem(radCalendar1.SelectedDate.ToShortDateString().ToString()))
End Sub
ViewChangingThis event fires just prior to ViewChanged and allows you to cancel.  The ViewChangingEventArgs passed to this event include the View and a boolean Cancel property.
ViewChangedThis event is fired when the currently visible view (for example a YearView Or MonthsView) is changed.