<%@ 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="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadGrid ID="RadGrid1" runat="server" ShowGroupPanel="True" Width="99%" AllowPaging="True"
            PageSize="10" AllowSorting="true" DataSourceID="SqlDataSource1" GridLines="None"
            PagerStyle-AlwaysVisible="true" AutoGenerateEditColumn="true" OnItemDataBound="RadGrid1_ItemDataBound">
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            <MasterTableView EditMode="InPlace" AutoGenerateColumns="False" Name="Requirements"
                CommandItemDisplay="None" GridLines="None" DataKeyNames="ProductID" DataSourceID="SqlDataSource1">
                <Columns>
                    <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" UniqueName="ProductName"
                        AllowFiltering="true" AllowSorting="true" SortExpression="ProductName">
                    </telerik:GridBoundColumn>
                    <telerik:GridDropDownColumn DataField="ProductID" HeaderText="ProductID" ListValueField="ProductID"
                        ListTextField="ProductID" UniqueName="ProductID" DataType="System.Int32" SortExpression="ProductID"
                        DataSourceID="SqlDataSource1">
                    </telerik:GridDropDownColumn>
                    <telerik:GridBoundColumn DataField="CategoryName" HeaderText="CategoryName" UniqueName="CategoryName"
                        AllowFiltering="true" AllowSorting="true" SortExpression="CategoryName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CategoryID" HeaderText="CategoryID" UniqueName="CategoryID"
                        AllowFiltering="true" AllowSorting="true" DataType="System.Int32" SortExpression="CategoryID">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            SelectCommand="SELECT [ProductName], [ProductID], [CategoryName], [CategoryID] FROM [Alphabetical list of products]">
        </asp:SqlDataSource>
    </div>
    </form>
</body>
</html>
