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

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager runat="server" ID="ScriptManager1">
        </asp:ScriptManager>
        <asp:Button runat="server" ID="Button1" Text="Export" OnClick="Button1_Click" />
        <telerik:RadGrid ID="RadGrid1" Skin="WebBlue" DataSourceID="SqlDataSource1" runat="server"
            Width="95%" AutoGenerateColumns="False" PageSize="3" AllowSorting="True" AllowPaging="false"
            GridLines="None" ShowStatusBar="True" AllowMultiRowSelection="true">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="CustomerID" AllowMultiColumnSorting="True"
                Width="100%">
                <Columns>
                    <telerik:GridClientSelectColumn UniqueName="SelectColumn">
                    </telerik:GridClientSelectColumn>
                    <telerik:GridBoundColumn SortExpression="CustomerID" HeaderText="CustomerID" HeaderButtonType="TextButton"
                        DataField="CustomerID" UniqueName="CustomerID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="ContactName" HeaderText="Contact Name" HeaderButtonType="TextButton"
                        DataField="ContactName" UniqueName="ContactName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn SortExpression="CompanyName" HeaderText="Company" HeaderButtonType="TextButton"
                        DataField="CompanyName" UniqueName="CompanyName">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <HeaderContextMenu EnableTheming="True" Skin="WebBlue">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </HeaderContextMenu>
            <FilterMenu EnableTheming="True" Skin="WebBlue">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </FilterMenu>
        </telerik:RadGrid>
        <asp:AccessDataSource ID="SqlDataSource1" DataFile="~/App_Data/Nwind.mdb" SelectCommand="SELECT TOP 20 * FROM Customers"
            runat="server"></asp:AccessDataSource>
    </div>
    </form>
</body>
</html>
