RadCalendar for ASP.NET

OnViewSelectorClick Send comments on this topic.
Telerik RadCalendar Client-Side > Client-Side Events > OnViewSelectorClick

Glossary Item Box

 

 

Fired

When a calendar view selector is clicked. That event occurs only if the property EnableViewSelector is set to true.

Arguments

calendarInstance - the Telerik RadCalendar instance that raised the event.

args (composite argument)

  • args.DomElement - the cell event object corresponding to the click event (you can use this object to get the x, y coordinates of the mouse click).

Can be cancelled

Yes, return false to cancel.

Example

ascx/aspx

Copy Code
<radc:radcalendar id="Ca1endar1" runat="server ">
    <ClientEvents
      OnViewSelectorClick="Calendar_OnViewSelectorClick">
   </ClientEvents>
</radc:radcalendar>

JavaScript

The javascript function for implementing the OnViewSelectorClick event looks like this:
Copy Code
function Calendar_OnViewSelectorClick(calendarInstance, args)
{
    ....
    return TraceEvent("OnViewSelectorClick", "Proceed the selection of the view selector?");
}