<%@ Page Language="C#" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register TagPrefix="act" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .RadGrid td .ajax__calendar td
        {
            padding: 0;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server">
        </asp:ScriptManager>
        <script type="text/C#" runat="server">
            protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
            {
                DataTable table = new DataTable();
                table.Columns.Add("ID", typeof(int));
                for (int i = 0; i < 10; i++)
                {
                    table.Rows.Add(i);
                }
                RadGrid1.DataSource = table;
            }
        </script>
        <telerik:RadGrid ID="RadGrid1" runat="server" OnNeedDataSource="RadGrid1_NeedDataSource">
            <MasterTableView AutoGenerateColumns="false">
                <Columns>
                    <telerik:GridTemplateColumn UniqueName="GridTemplateColumn1" HeaderText="GridTemplateColumn1">
                        <ItemTemplate>
                            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                            <act:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="TextBox1" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <act:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="TextBox2" />
    </div>
    </form>
</body>
</html>
