<%@ 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></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager" runat="server" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
        <div>
            <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="AccessDataSource1" AllowMultiRowEdit="true"
                GridLines="None" AllowPaging="True" AllowSorting="true">
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="OrderID" DataSourceID="AccessDataSource1"
                    CommandItemDisplay="Top">
                    <PagerStyle Mode="NextPrevAndNumeric" />
                    <Columns>
                        <telerik:GridEditCommandColumn ButtonType="ImageButton" />
                        <telerik:GridBoundColumn DataField="OrderID" DataType="System.Int32" HeaderText="OrderID"
                            ReadOnly="True" SortExpression="OrderID" UniqueName="OrderID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="OrderDate" DataType="System.DateTime" HeaderText="OrderDate"
                            SortExpression="OrderDate" UniqueName="OrderDate" DataFormatString="{0:D}">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Freight" DataType="System.Decimal" HeaderText="Freight"
                            SortExpression="Freight" UniqueName="Freight">
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn DataField="ShipAddress" HeaderText="ShipAddress">
                            <HeaderStyle Width="30%" />
                            <ItemTemplate>
                                <img src='Img/<%# Eval("ShipAddress") %>.gif' alt="" style="vertical-align: middle;
                                    margin-right: 7px;" />
                                <%# Eval("ShipAddress")%>
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridButtonColumn CommandName="Delete" ButtonType="ImageButton" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <asp:AccessDataSource ID="AccessDataSource1" runat="server" DataFile="~/App_Data/Nwind.mdb"
                SelectCommand="SELECT [OrderID], [OrderDate], [Freight], [ShipAddress] FROM [Orders]">
            </asp:AccessDataSource>
        </div>
    </form>
</body>
</html>
