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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Namespace="MyStuff" 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>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
            PageSize="5" DataSourceID="AccessDataSource1" OnItemCommand="RadGrid1_ItemCommand">
            <MasterTableView AutoGenerateColumns="False" DataSourceID="AccessDataSource1" CommandItemDisplay="Top">
                <CommandItemTemplate>
                    <asp:LinkButton runat="server" ID="LinkButton1" Text="Clear Filters" CommandName="ClearFilters" />
                </CommandItemTemplate>
                <Columns>
                    <custom:MyCustomFilteringColumn HeaderText="Employee ID" DataField="EmployeeID" UniqueName="EmployeeID" />
                    <custom:MyCustomFilteringColumn HeaderText="Customer ID" DataField="CustomerID" UniqueName="CustomerID" />
                    <telerik:GridBoundColumn AllowFiltering="False" HeaderText="Order ID" DataField="OrderID"
                        UniqueName="OrderID" />
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
            SelectCommand="SELECT * from Orders"></asp:AccessDataSource>
    </div>
    </form>
</body>
</html>
