New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

OnCalendarViewChanging

The OnCalendarViewChanging client-side event handler of the ASP NET AJAX Calendar is called when the calendar navigates to a new view, before the viewable area rendered by the calendar is changed.

The event handler receives two arguments:

  1. the RadCalendar object that fired the event.

  2. an event arguments object that exposes the following methods:OnCalendarViewChanging event arguments object

NameReturn TypeArgumentsDescription
get_step()intReturns the number of views by which the calendar is about to change.
set_cancel(value)boolLets you prevent the view from changing.

This event can be used to pre-process some conditions or visual styles and content before the final rendering of the calendar. The following example uses the OnCalendarViewChanging event to prevent the view from changing unless a date in the current month is selected:

ASPNET
<telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server" ShowOtherMonthsDays="False" >
	<ClientEvents OnCalendarViewChanging="checkSelections" />
</telerik:RadCalendar>

See Also

In this article
See Also
Not finding the help you need?
Contact Support