<%@ Page EnableViewState="True" Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs"
    Inherits="_Default" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!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 id="Head1" runat="server">
    <title>Untitled Page</title>
</head>
<body style="margin: 0px;">
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />

        <script type="text/javascript">
            function OrdersRadGridCommand(sender, eventArgs) {
                eventArgs.get_domEvent().rawEvent.cancelBubble = true;
                eventArgs.get_domEvent().preventDefault();
            }
        </script>

        <telerik:RadGrid ID="RadGrid2" runat="server" AllowPaging="True" DataSourceID="AccessDataSource1"
            AllowFilteringByColumn="true" Skin="Vista" OnItemCommand="CustomerGrid_ItemCommand">
            <ClientSettings EnablePostBackOnRowClick="true">
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
            <MasterTableView>
                <NestedViewTemplate>
                    <telerik:RadGrid runat="server" AllowPaging="true" AllowMultiRowSelection="true"
                        OnNeedDataSource="OrdersGrid_NeedDataSource" ID="OrdersRadGrid" OnItemCommand="OrdersRadGrid_ItemCommand">
                        <ClientSettings EnablePostBackOnRowClick="true">
                            <ClientEvents OnRowClick="OrdersRadGridCommand" />
                            <Selecting AllowRowSelect="true" />
                        </ClientSettings>
                        <MasterTableView>
                        </MasterTableView>
                    </telerik:RadGrid>
                </NestedViewTemplate>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
            SelectCommand="SELECT [CustomerID], [CompanyName], [ContactName] FROM [Customers]">
        </asp:AccessDataSource>
    </form>
</body>
</html>
