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

<%@ Register Src="DateRangePicker.ascx" TagName="DateRangePicker" TagPrefix="uc1" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>

<!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>
        <uc1:DateRangePicker ID="DateRangePicker1" runat="server" />
        <asp:Button ID="pbApply" runat="server" Text="Apply" OnClick="pbApply_Click" /><br />
        <asp:Panel ID="pnlData" runat="server" Height="50px" Width="125px">
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="AccessDataSource1" CellPadding="4" ForeColor="#333333" GridLines="None" Width=500px>
                <Columns>
                    <asp:BoundField DataField="TransactionDate" DataFormatString="{0:d}" HeaderText="TransactionDate"
                        HtmlEncode="False" SortExpression="TransactionDate"/>
                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                    <asp:BoundField DataField="Amount" DataFormatString="{0:c}" HeaderText="Amount" HtmlEncode="False"
                        SortExpression="Amount" />
                </Columns>
                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                <RowStyle BackColor="#EFF3FB" />
                <EditRowStyle BackColor="#2461BF" />
                <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" HorizontalAlign=Left />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Bank.mdb"
                SelectCommand="SELECT [TransactionDate], [Description], [Amount] FROM [Transactions]">
            </asp:AccessDataSource>
            &nbsp; &nbsp;&nbsp;
        </asp:Panel>
        <br />
        <radA:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <radA:AjaxSetting AjaxControlID="pbApply">
                    <UpdatedControls>
                        <radA:AjaxUpdatedControl ControlID="pnlData" />
                    </UpdatedControls>
                </radA:AjaxSetting>
            </AjaxSettings>
        </radA:RadAjaxManager>
    
    </div>
    </form>
</body>
</html>
