RadCalendar for ASP.NET

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

Glossary Item Box

 

 

Fired

When a calendar column header is clicked. That event occurs only if the property ShowColumnHeaders 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.ColIndex - the column index of the clicked cell in the calendar table. Note that the columns array is zero-based.

Can be cancelled

Yes, return false to cancel.

Example

ascx/aspx

Copy Code
<radc:radcalendar id="Ca1endar1" runat="server ">
    <ClientEvents
      OnColumnHeaderClick="Calendar_OnColumnHeaderClick">
   </ClientEvents>
</radc:radcalendar>

JavaScript

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