<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="popup.aspx.cs" Inherits="TestProject.popup" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

<script runat="server">

    protected void Button1_Click(object sender, EventArgs e)
    {
        Label1.Text = DateTime.Now.ToString();  
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" EnablePageMethods="true" runat="server" />
    <div>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Vista">
        </telerik:RadAjaxLoadingPanel>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Button1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgDiagnosisBundle" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Button1" LoadingPanelID="RadAjaxLoadingPanel1" />
                        <telerik:AjaxUpdatedControl ControlID="Label1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rgDiagnosisBundle">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgDiagnosisBundle" LoadingPanelID="RadAjaxLoadingPanel1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <asp:Button ID="Button1" runat="server" Text="Click me" OnClick="Button1_Click" />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Date"></asp:Label>
        <br />
        <br />
        <telerik:RadGrid ID="rgDiagnosisBundle" Skin="WebBlue" GridLines="None" runat="server"
            AllowPaging="true" AutoGenerateColumns="False" AllowFilteringByColumn="true"
            AllowSorting="true" PageSize="5" OnNeedDataSource="rgDiagnosisBundle_NeedDataSource">
            <MasterTableView CommandItemDisplay="None" HorizontalAlign="NotSet" AutoGenerateColumns="False"
                AllowFilteringByColumn="false" AllowSorting="false">
                <Columns>
                    <telerik:GridTemplateColumn HeaderStyle-Width="20" AllowFiltering="false">
                        <ItemTemplate>
                            <asp:Label ID="label" runat="server" Text="test test test" />
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
    </div>
    </form>
</body>
</html>
