RadCalendar for ASP.NET

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

Glossary Item Box

 

 

Fired

When a calendar row header is clicked. That event occurs only if the property ShowRowHeaders 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).
  • args.RowIndex - the row index of the clicked cell in the calendar table. Note that the rows array is zero-based.

Can be cancelled

Yes, return false to cancel.

Example

ascx/aspx

Copy Code
<radc:radcalendar id="Ca1endar1" runat="server ">
    <ClientEvents
      OnRowHeaderClick="Calendar_OnRowHeaderClick">
   </ClientEvents>
</radc:radcalendar>

JavaScript

The javascript function for implementing the OnRowHeaderClick event looks like this:
Copy Code
function Calendar_OnRowHeaderClick(calendarInstance, args)
{
    ....
    return TraceEvent("OnRowHeaderClick", "Proceed the selection of the row with index " + args.RowIndex + "?");
}