RadCalendar for ASP.NET

OnCalendarViewChanging Send comments on this topic.
See Also
Telerik RadCalendar Client-Side > Client-Side Events > OnCalendarViewChanging

Glossary Item Box

 

Fired

Before the viewable area rendered by the calendar is changed. Generally the event is raised as a result of using the built-in navigation controls. The event is raised before the results are rendered, so that custom logic could be executed, and the change could be prevented if necessary. There is no way to find out whether the operation was accomplished successfully.

Arguments

calendarInstance - the Telerik RadCalendar instance that raised the event.

step - an integer that denotes the increment/decrement value to be calculated. This value is abstract, as it describes the count of "views" that the calendar needs to shift in order to produce a valid calendar presentation.

Can be cancelled

Yes, return false to cancel.

Example

ascx/aspx

<_asp3a_checkbox id="BeforeExpand" runat="server" text="BeforeClientPanelItemExpanded">
Copy Code
<radc:radcalendar id="Ca1endar1" runat="server">
    <ClientEvents
      OnCalendarViewChanging="Calendar_OnCalendarViewChanging">
   </ClientEvents>
</radc:radcalendar>

JavaScript

The javascript function for implementing the OnCalendarViewChanging event looks like this:
 
Copy Code
function Calendar_OnCalendarViewChanging(calendarInstance, step)
{
     ....
}

 

Remarks

This event can be used to pre-process some conditions or visual styles/content before the final rendering of the calendar.

See Also