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

<%@ Register Assembly="Telerik.OpenAccess, Version=2009.1.605.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"
  Namespace="Telerik.OpenAccess" TagPrefix="telerik" %>
<%@ 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>
  <style type="text/css">


.RadComboBox_Default
{
	vertical-align: middle;
}

.RadComboBox_Default
{
	font: 12px "Segoe UI", Arial, sans-serif;
	color: #333;
	text-align: left;
}

.RadComboBox_Default *
{
	margin: 0;
	padding: 0;
}

.RadComboBox_Default .rcbInputCellLeft
{
	background: url('mvwres://Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.ComboBox.rcbSprite.png') no-repeat;
}

.RadComboBox_Default .rcbReadOnly .rcbInput
{
	cursor: default;
}

.RadComboBox_Default .rcbInput
{
	font: 12px "Segoe UI", Arial, sans-serif;
	color: #333;
	text-align: left;
}

.RadComboBox_Default .rcbArrowCellRight
{
	background: url('mvwres://Telerik.Web.UI, Version=2009.1.402.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4/Telerik.Web.UI.Skins.Default.ComboBox.rcbSprite.png') no-repeat;
}

    .style1
    {
      width: 100%;
      height: 22px;
      line-height: 20px;
      vertical-align: top;
      border-style: none;
      border-color: inherit;
      border-width: 0;
      margin-top: -1px;
      margin-bottom: -1px;
      padding-left: 2px;
      padding-right: 0;
      padding-top: 0;
      padding-bottom: 0;
      background-position: 0 0;
    }
    .style2
    {
      width: 16px;
      border-style: none;
      border-color: inherit;
      border-width: 0;
      margin-top: -1px;
      margin-bottom: -1px;
      padding: 0;
      background-position: -2px -88px;
    }
  </style>
</head>
<body>
  <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" 
      runat="server">
    </asp:ScriptManager>
    <div>
      <telerik:OpenAccessDataSource ID="OpenAccessDataSource1" 
        runat="server" EnableDelete="True" 
        EnableInsert="True" EnableUpdate="True" 
        ObjectContextProvider="MyWebApp.NorthwindProvider, MyWebApp" 
        TypeName="Model.Category" Where="" 
        ContextTypeName="" OrderBy="">
      </telerik:OpenAccessDataSource>
      <telerik:RadAjaxManager ID="RadAjaxManager1" 
        runat="server">
        <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="ddlCategory">
            <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="gvProducts" />
            </UpdatedControls>
          </telerik:AjaxSetting>
        </AjaxSettings>
      </telerik:RadAjaxManager>
    </div>
    
    <telerik:RadComboBox ID="ddlCategory" 
      Runat="server" AutoPostBack="True" 
      onselectedindexchanged="ddlCategory_SelectedIndexChanged1" 
      Skin="Forest">
    </telerik:RadComboBox>
    <telerik:RadGrid ID="gvProducts" runat="server" 
      Skin="Forest">
<MasterTableView>
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
</MasterTableView>
    </telerik:RadGrid>
    <br />
    
  </form>
</body>
</html>
