New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnCalendarViewChanged
The OnCalendarViewChanged client-side event handler of the ASP NET AJAX Calendar is called when the calendar navigates to a new view, after the calendar has been updated for the new view. The event is raised after the action is complete.
The event handler receives two arguments:
-
the RadCalendar object that fired the event.
-
an event arguments object that exposes the following methods:OnCalendarViewChanged event arguments object
Name | Return Type | Arguments | Description |
---|---|---|---|
get_step() | int | Returns the number of views by which the calendar has changed. |
The following example uses the OnCalendarViewChanged event to display an alert:
ASPNET
<telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server">
<ClientEvents OnCalendarViewChanged="viewChanged" />
</telerik:RadCalendar>