<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="C1Calendar_Sample._Default" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.48" Namespace="C1.Web.Wijmo.Controls.C1Calendar" TagPrefix="wijmo" %>

<%@ Register Assembly="C1.Web.Wijmo.Controls.48" Namespace="C1.Web.Wijmo.Controls.C1Input" TagPrefix="wijmo" %>

<asp:Content ID="BodyContent" ContentPlaceHolderID="MainContent" runat="server">

    <script>
        $(document).ready(function () {
            var calendarId = '<%= C1Calendar1.ClientID %>';

            // Calendar may re-render; use delegated event on the container
            $('#' + calendarId).on('click', '.wijmo-wijcalendar-title', function (e) {
                alert('onGroupTitleClicked handler');
            });
        });
    </script>

    <wijmo:C1Calendar ID="C1Calendar1" runat="server"></wijmo:C1Calendar>
</asp:Content>
