<%@ 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">
    <div style="height: 400px">
        <telerik:RadGrid ID="grdMarkups" AllowMultiRowSelection="false" PagerStyle-AlwaysVisible="false"
            PagerStyle-Mode="NextPrevNumericAndAdvanced" runat="server" Width="99.9%" Height="99.9%"
            AllowPaging="false" AllowSorting="false" AutoGenerateColumns="False" GridLines="None">
            <MasterTableView AllowPaging="false" NoMasterRecordsText="This document does not currently have any markups associated with this version">
                <Columns>
                    <telerik:GridBoundColumn DataField="Item_Name" HeaderText="Name" Visible="true" ItemStyle-Wrap="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Last_Edit" HeaderText="Last Edit" HeaderStyle-Width="25%"
                        ItemStyle-CssClass="contactInfoXSmallNormal" ItemStyle-Wrap="true">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Original_Filename" HeaderText="Original File"
                        Visible="false" ItemStyle-Wrap="true" HeaderStyle-Width="15%">
                    </telerik:GridBoundColumn>
                    <telerik:GridHyperLinkColumn DataNavigateUrlFields="MarkupURL" UniqueName="Markup"
                        HeaderTooltip="Click to view more details about the document" HeaderText="View"
                        Text="View" Target="_blank" HeaderStyle-Width="10%" HeaderStyle-HorizontalAlign="Center"
                        ItemStyle-HorizontalAlign="Center">
                    </telerik:GridHyperLinkColumn>
                    <telerik:GridTemplateColumn HeaderText="Download" UniqueName="Download" HeaderStyle-Width="11%"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="false">
                        <ItemTemplate>
                            <button value="Download" style="width: 90%" title="Download this document" class="contactInfoXXSmall"
                                type="button" onclick="downloadSingleDocument('<%# Eval("Id") %>');">
                                Download</button>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridTemplateColumn HeaderText="View" HeaderStyle-Width="5%" HeaderStyle-HorizontalAlign="Center"
                        ItemStyle-HorizontalAlign="Center" Visible="false">
                        <ItemTemplate>
                            <button value="View" style="width: 90%" title="View this document" class="contactInfoXXSmall"
                                onclick="viewSingleDocument('<%# Eval("Id") %>');">
                                View</button>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="Id" Visible="false">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="false">
                <Selecting AllowRowSelect="true" />
                <Scrolling AllowScroll="true" UseStaticHeaders="true" />
            </ClientSettings>
        </telerik:RadGrid>
    </div>
</asp:Content>
