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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<telerik:RadAjaxLoadingPanel Skin="WebBlue" runat="server" ID="RadAjaxLoadingPanel1"></telerik:RadAjaxLoadingPanel>
    <table id="NotesAndCommentsTable" border="1" style="border-collapse: collapse; border-color: Black;
        display: block; background-color: White" width="100%" cellpadding="0" cellspacing="0">
        <tr>
            <td>
                <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1"
                    EnableAJAX="true">
                    <telerik:RadGrid ID="grdNotes" runat="server" Skin="WebBlue" CssClass="RadGrid" GridLines="None"
                        AllowPaging="True" PageSize="20" AllowSorting="True" AutoGenerateColumns="False"
                        ShowStatusBar="true" HorizontalAlign="NotSet" OnNeedDataSource="grdNotes_NeedDataSource"
                        OnInsertCommand="grdNotes_InsertCommand">
                        <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="UserCreated" EditMode="PopUp">
                            <Columns>
                                <telerik:GridBoundColumn UniqueName="DateCreated" HeaderText="Date" DataField="DateCreated">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="UserCreated" HeaderText="User" DataField="UserCreated">
                                </telerik:GridBoundColumn>
                                <telerik:GridBoundColumn UniqueName="Notes" HeaderText="Notes/Comments" DataField="Notes">
                                </telerik:GridBoundColumn>
                            </Columns>
                            <EditFormSettings CaptionFormatString="Edit :" CaptionDataField="UserCreated" EditFormType="Template">
                                <FormTemplate>
                                    <table id="Table1" style="border-collapse: collapse; border-color: Black; display: block;
                                        background-color: White" cellspacing="1" cellpadding="1" width="100%" border="0">
                                        <tr>
                                            <td>
                                            </td>
                                            <td>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                Notes/Comments:
                                            </td>
                                            <td>
                                                <asp:TextBox ID="TextBox10" TextMode="MultiLine" Width="300" Text='<%# Bind("Notes") %>'
                                                    runat="server">
                                                </asp:TextBox>
                                            </td>
                                        </tr>
                                    </table>
                                    <table style="width: 100%; border-collapse: collapse; border-color: Black; display: block;
                                        background-color: White">
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:Button ID="Button1" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                                    runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
                                                </asp:Button>
                                                <asp:Button ID="Button2" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel">
                                                </asp:Button>
                                            </td>
                                        </tr>
                                    </table>
                                </FormTemplate>
                            </EditFormSettings>
                        </MasterTableView>
                    </telerik:RadGrid>
                </telerik:RadAjaxPanel>
                <telerik:RadWindowManager ID="RadWindowManager1" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
