<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default6.aspx.cs" Inherits="Default6" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Namespace="SchedulerTemplatesCS" TagPrefix="custom" %>
<!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 runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <telerik:RadScriptManager ID="RadScriptManager" runat="server">
        </telerik:RadScriptManager>
        <strong>Orders:</strong>
        <telerik:RadGrid ID="RadGrid1" ShowStatusBar="true" runat="server" AllowPaging="True"
            PageSize="5" DataSourceID="SqlDataSource2" GridLines="None" Width="95%" HorizontalAlign="NotSet">
            <MasterTableView Width="100%" AutoGenerateColumns="False" DataKeyNames="OrderID"
                AllowFilteringByColumn="true" DataSourceID="SqlDataSource2">
                <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                </RowIndicatorColumn>
                <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"
                        ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate"
                        SortExpression="OrderDate" UniqueName="OrderDate" DataFormatString="{0:d}">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" SortExpression="ShipCountry"
                        UniqueName="ShipCountry">
                    </telerik:GridBoundColumn>
                </Columns>
                <NestedViewTemplate>
                    <asp:FormView ID="FormView" runat="server" ViewStateMode="Enabled" DataSourceID="SqlDataSource2">
                        <ItemTemplate>
                            <asp:Panel ID="NestedViewPanel" runat="server" CssClass="viewWrap" Width="1000px">
                                <telerik:RadTabStrip runat="server" ID="TabStip" MultiPageID="Multipage" SelectedIndex="0">
                                    <Tabs>
                                        <telerik:RadTab runat="server" Text="General" PageViewID="General" />
                                    </Tabs>
                                </telerik:RadTabStrip>
                                <telerik:RadMultiPage runat="server" ID="Multipage" SelectedIndex="0">
                                    <telerik:RadPageView runat="server" ID="Genearal">
                                        <ul style="padding-left: 30px; padding-top: 3px; padding-bottom: 3px">
                                            <li>
                                                <telerik:RadTextBox ID="NameTextBox" Text='<%# Eval("ShipCountry") %>' Label="Name:"
                                                    LabelCssClass="InfoLabelsClass" ReadOnly="true" runat="server">
                                                </telerik:RadTextBox>
                                            </li>
                                            <li>
                                                <telerik:RadTextBox ID="SourceTextBox" Text='<%# Eval("CustomerID") %>' Label="Source:"
                                                    LabelCssClass="InfoLabelsClass" ReadOnly="true" runat="server">
                                                </telerik:RadTextBox>
                                            </li>
                                        </ul>
                                    </telerik:RadPageView>
                                </telerik:RadMultiPage>
                                <asp:Button runat="server" ID="EditBtn" Text="Edit" OnClick="EditBtn_Click"></asp:Button>
                            </asp:Panel>
                        </ItemTemplate>
                    </asp:FormView>
                </NestedViewTemplate>
                <EditFormSettings>
                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                    </EditColumn>
                </EditFormSettings>
            </MasterTableView>
            <ClientSettings AllowKeyboardNavigation="true" EnablePostBackOnRowClick="true">
                <Selecting AllowRowSelect="true" />
            </ClientSettings>
            <PagerStyle Mode="NextPrevAndNumeric" />
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource2" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT [OrderID], [OrderDate], [CustomerID], [ShipCountry] FROM [Orders]"
            runat="server"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
