New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Client-Side Events

November 2024
Event log

Telerik RadCalendar exposes a rich set of client-side events which allow for easy and flexible use in a wide range of application scenarios. In this example we demonstrate the main client-side events:

  • OnInit
  • OnLoad
  • OnDateSelecting
  • OnDateSelected
  • OnDateClick
  • OnCalendarViewChanging
  • OnCalendarViewChanged
  • OnRowHeaderClick
  • OnColumnHeaderClick
  • OnViewSelectorClick
  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • scripts.js
<%@ Page CodeFile="DefaultCS.aspx.cs" Language="c#" AutoEventWireup="false" Inherits="Telerik.Web.Examples.Calendar.Programming.ClientSideEvents.DefaultCS" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <script src="scripts.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
        <div class="demo-container " runat="server" id="containerDiv">
            <telerik:RadCalendar RenderMode="Lightweight" ID="RadCalendar1" runat="server" TitleFormat="MMMM yyyy" EnableViewSelector="true">
                <ClientEvents OnDateClick="Calendar_OnDateClick" OnDateSelecting="Calendar_OnDateSelecting"
                    OnDateSelected="Calendar_OnDateSelected" OnCalendarViewChanging="Calendar_OnCalendarViewChanging"
                    OnCalendarViewChanged="Calendar_OnCalendarViewChanged" OnInit="Calendar_OnInit"
                    OnLoad="Calendar_OnLoad" OnRowHeaderClick="Calendar_OnRowHeaderClick" OnColumnHeaderClick="Calendar_OnColumnHeaderClick"
                    OnViewSelectorClick="Calendar_OnViewSelectorClick"></ClientEvents>
            </telerik:RadCalendar>
        </div>
    </div>
    <qsf:EventLogConsole runat="server" ID="EventLogConsole1"></qsf:EventLogConsole>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance