Calendar - Client-Side Events

December 2016

Event log

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

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 PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<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>

Find Assistance

Help Us Improve

Was this example helpful?