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

<%@ 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>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="RadScriptManager2" runat="server">
    </asp:ScriptManager>
    <div>
    
        <telerik:RadGrid ID="RadGrid1" runat="server" Width="67%" AllowFilteringByColumn="True"
            AllowSorting="True" PageSize="12" ShowFooter="True" AllowPaging="True" AutoGenerateColumns="False"
            GridLines="None" ShowStatusBar="true" EnableLinqExpressions="false" DataSourceID="SqlDataSource1"
            OnItemCommand="RadGrid1_ItemCommand">
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView AllowFilteringByColumn="true" OnDataBinding="MasterTableView_DataBinding">
                <Columns>
                    <telerik:GridBoundColumn DataField="OrderID" HeaderText="OrderID">
                        <HeaderStyle Width="25%" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CustomerID" HeaderText="CustomerID" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="StartsWith" FilterDelay="25" ShowFilterIcon="false">
                        <HeaderStyle Width="25%" />
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn DataField="Freight" HeaderText="Freight">
                        <HeaderStyle Width="25%" />
                        <ItemTemplate>
                            <%# Eval("Freight")%>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="ShipAddress" HeaderText="ShipAddress" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="StartsWith" FilterDelay="50" ShowFilterIcon="true">
                        <HeaderStyle Width="25%" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShipCity" HeaderText="ShipCity" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="Contains" ShowFilterIcon="false">
                        <HeaderStyle Width="25%" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShipPostalCode" HeaderText="ShipPostalCode" AutoPostBackOnFilter="false"
                        CurrentFilterFunction="Contains" ShowFilterIcon="false">
                        <HeaderStyle Width="25%" />
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ShipCountry" HeaderText="ShipCountry" AutoPostBackOnFilter="true"
                        CurrentFilterFunction="Contains" ShowFilterIcon="false">
                        <HeaderStyle Width="25%" />
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [OrderID], [CustomerID], [EmployeeID], [Freight], [ShipName], [ShipAddress], [ShipCity], [ShipRegion], [ShipPostalCode], [ShipCountry] FROM [Orders]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
