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

<%@ Register Namespace="MyStuff" TagPrefix="custom" %>
<%@ 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 runat="server">
    <title>Untitled Page</title>
    <style type="text/css">  
   
   


    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager runat="server" ID="Manager1">
        </asp:ScriptManager>
        <telerik:RadScriptBlock runat="server" ID="RadCodeBlock1">

            <script type="text/javascript">
                  
            
            
        
            </script>

        </telerik:RadScriptBlock>
        
       <asp:Button runat="server" ID="Button1" Text="Button1" OnClick="Button1_Click" />
              
        <telerik:RadGrid ID="RadGrid1" ShowStatusBar="True" DataSourceID="SqlDataSource1"
            runat="server" AutoGenerateColumns="False" PagerStyle-Mode="Slider"
            GridLines="None" SortingSettings-SortedBackColor="red" AllowPaging="True">
            <PagerStyle Mode="NumericPages"></PagerStyle>
            <MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="CustomerID" AllowMultiColumnSorting="True"
             GroupsDefaultExpanded="false"
            PagerStyle-Mode="Slider"           
                TableLayout="Fixed">
                <GroupByExpressions>
                <telerik:GridGroupByExpression>
                <GroupByFields>
                <telerik:GridGroupByField FieldName="CustomerID" />
                </GroupByFields>
                <SelectFields>
                <telerik:GridGroupByField FieldName="CustomerID" />
                </SelectFields>
                </telerik:GridGroupByExpression>
                </GroupByExpressions>
                <Columns>
                    <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">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </HeaderContextMenu>
            <FilterMenu EnableTheming="True">
                <CollapseAnimation Duration="200" Type="OutQuint" />
            </FilterMenu>
            <SortingSettings SortedBackColor="Red" />
            <ClientSettings EnablePostBackOnRowClick="True">
            </ClientSettings>
        </telerik:RadGrid>
        <asp:AccessDataSource ID="SqlDataSource1" DataFile="~/App_Data/Nwind.mdb" 
        SelectCommand="SELECT * FROM Customers"
            runat="server"></asp:AccessDataSource>
    </form>
</body>
</html>
