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

OnColumnHeaderClick

The OnColumnHeaderClick client-side event handler of the ASP NET AJAX Calendar is called when the user is about to select a column of dates by clicking on a column header. The event occurs only if the ShowColumnHeaders and UseColumnHeadersAsSelectors properties are 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:OnColumnHeaderClick event arguments object

NameReturn TypeArgumentsDescription
get_index()intReturns the 1-based index of the column that was clicked.
get_domElement()HTML elementReturns the DOM element for the column header that was clicked.
set_cancel(value)boolLets you prevent the click from selecting the column of dates.

The following example uses the OnColumnHeaderClick event to confirm the selection:

ASPNET
<telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server">
	<ClientEvents OnColumnHeaderClick="confirmColumnSelection" />
</telerik:RadCalendar>

See Also

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