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

OnViewSelectorClick

The OnViewSelectorClick client-side event handler of the ASP NET AJAX Calendar is called when the user is about to select an entire view of dates by clicking on the view selector. The event occurs only if the EnableViewSelector property is set to true.

The event handler receives two arguments:

  1. the RadCalendar object that fired the event.

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

NameReturn TypeArgumentsDescription
get_domElement()HTML elementReturns the DOM element for the view selector
set_cancel(value)boolLets you prevent the click from selecting or unselecting the dates in the current view.

The following example uses the OnViewSelectorClick event to confirm the selection and, if the selection proceeds, to change the appearance of the view selector:

ASPNET
<telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server" EnableViewSelector="True" >
    <ClientEvents OnViewSelectorClick="ConfirmSelection" />
</telerik:RadCalendar>	

See Also

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