<%@ Page Language="VB" AutoEventWireup="false" CodeFile="RadGridNested.aspx.vb" Inherits="RadGridNested" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .rgCollapse
        {
            background-image: url("minus_red.png") !important;
            background-position: 0px 0px !important;
        }

        .rgExpand
        {
            background-image: url("plus.png") !important;
            background-position: 0px 0px !important;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <telerik:RadGrid
            runat="server"
            ID="RadGrid2"
            EnableEmbeddedSkins="true"
            ShowStatusBar="True"
            AllowPaging="True"
            AutoGenerateColumns="False"
            CellSpacing="0"
            Width="800px" GridLines="None" PageSize="10">
            <ActiveItemStyle CssClass="alternate" />
            <MasterTableView>
                <ExpandCollapseColumn
                    Visible="True" />
                <Columns>
                    <telerik:GridBoundColumn DataField="OrderID" Display="False" UniqueName="ImportHeaderID" Visible="False" />
                    <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" HeaderStyle-Width="40px" ImageUrl="~/deleteFlag.jpg" Text="Delete" UniqueName="DeleteColumn">
                        <HeaderStyle Width="40px" />
                    </telerik:GridButtonColumn>
                    <telerik:GridHyperLinkColumn AllowFiltering="False" DataNavigateUrlFields="OrderID" DataNavigateUrlFormatString="~/DisplayFile.aspx?HeaderID={0}" DataTextField="ShipName" HeaderStyle-Width="200px" HeaderText="Filename" Target="_blank" UniqueName="Filename">
                        <HeaderStyle Width="200px" />
                    </telerik:GridHyperLinkColumn>
                    <telerik:GridDateTimeColumn AllowFiltering="False" DataField="OrderDate" HeaderStyle-Width="200px" HeaderText="Uploaded" ReadOnly="true" UniqueName="Uploaded">
                        <HeaderStyle Width="200px" />
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn AllowFiltering="False" DataField="ShipCountry" HeaderStyle-Width="200px" HeaderText="CreatedBy" ReadOnly="true" UniqueName="CreatedBy">
                        <HeaderStyle Width="200px" />
                    </telerik:GridBoundColumn>
                </Columns>
                <NestedViewTemplate>
                    <asp:Panel ID="Errors" runat="server">
                        <telerik:RadGrid ID="ErrorGrid"
                            runat="server"
                            EnableEmbeddedSkins="true"
                            ShowStatusBar="True"
                            AllowPaging="True"
                            AutoGenerateColumns="False"
                            CellSpacing="0"
                            ShowHeader="False" Width="800px" PageSize="3">
                            <MasterTableView Name="inner">
                                <Columns>
                                    <telerik:GridBoundColumn DataField="ShipCountry" />
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </asp:Panel>
                </NestedViewTemplate>
                <NoRecordsTemplate>
                    <div>Please select filter Settings from above</div>
                </NoRecordsTemplate>
            </MasterTableView>
            <HeaderContextMenu EnableEmbeddedSkins="true"></HeaderContextMenu>
        </telerik:RadGrid>
    </form>
</body>
</html>
