Glossary Item Box
Fired
After the date to be selected is added/removed to the selected dates collection.
Arguments
calendarInstance - the Telerik RadCalendar instance that raised the event
renderDay - a RenderDay object corresponding to the server-side RadCalendarDay.
Can be cancelled
No
Example
ascx/aspx
Copy Code <radc:radcalendar id="Ca1endar1" runat="server"> <ClientEvents OnDateSelected="Calendar_OnDateSelected"> </ClientEvents></radc:radcalendar>
JavaScript
The javascript function for implementing the OnDateSelected event looks like this:
Copy Code function Calendar_OnDateSelected(calendarInstance, renderDay){ .... alert("OnDateSelected: " + renderDay.Date + " " + (renderDay.IsSelected ? "selected" : "unselected"));}
This event can be used to conditionally process the selected date or any related event with it on the client.