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

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="System.Web.Entity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
    Namespace="System.Web.UI.WebControls" TagPrefix="asp" %>
<!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">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <telerik:radscriptblock id="ScriptBlock1" runat="server">

        <script type="text/javascript">

            function onCommand(sender, args) {


            }
        
        
        </script>

    </telerik:radscriptblock>
    <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" enablelinqexpressions="true" datasourceid="EntityDataSource1"
        gridlines="None">
        <MasterTableView AutoGenerateColumns="False" AllowFilteringByColumn="true" AllowSorting="true"
            AllowPaging="true" DataKeyNames="ProductID" DataSourceID="EntityDataSource1">
            <Columns>
                <telerik:GridCheckBoxColumn DataField="Discontinued" DataType="System.Boolean" HeaderText="Discontinued"
                    SortExpression="Discontinued" UniqueName="Discontinued">
                </telerik:GridCheckBoxColumn>
                <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32" HeaderText="ProductID"
                    ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ProductName" HeaderText="ProductName" SortExpression="ProductName"
                    UniqueName="ProductName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="QuantityPerUnit" HeaderText="QuantityPerUnit"
                    SortExpression="QuantityPerUnit" UniqueName="QuantityPerUnit">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="ReorderLevel" HeaderText="ReorderLevel" SortExpression="ReorderLevel"
                    UniqueName="ReorderLevel" DataType="System.Int16">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal" HeaderText="UnitPrice"
                    SortExpression="UnitPrice" UniqueName="UnitPrice">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitsInStock" DataType="System.Int16" HeaderText="UnitsInStock"
                    SortExpression="UnitsInStock" UniqueName="UnitsInStock">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="UnitsOnOrder" DataType="System.Int16" HeaderText="UnitsOnOrder"
                    SortExpression="UnitsOnOrder" UniqueName="UnitsOnOrder">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Categories.CategoryName" DataType="System.String" HeaderText="Categories.CategoryName"
                    SortExpression="Categories.CategoryName" UniqueName="Categories.CategoryName">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="Categories.CategoryID"  HeaderText="Categories.CategoryID"
                    SortExpression="Categories.CategoryID" UniqueName="CategoryID">
                </telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnCommand="onCommand" />
        </ClientSettings>
    </telerik:radgrid>
    <asp:EntityDataSource ID="EntityDataSource1" runat="server" Include="Categories"
        ConnectionString="name=NorthwindEntities" DefaultContainerName="NorthwindEntities"
        EnableDelete="True" EnableInsert="True" EnableUpdate="True" EntitySetName="Products">
    </asp:EntityDataSource>
    </form>
</body>
</html>
