<%@ 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">
    <asp:ScriptManager runat="server" ID="SMNGR"></asp:ScriptManager>
    <div>        
        <br/>
        LinqDataSource <br/><br/>
        <telerik:RadGrid runat="server" ID="RadGrid2" AutoGenerateColumns="false"
            AllowSorting="true" AllowPaging="true" DataSourceID="LinqDataSource1">
            <MasterTableView>
                <Columns>
                    <telerik:GridBoundColumn DataField="OrderID" HeaderText="OrderID">
                    </telerik:GridBoundColumn>                  
                    <telerik:GridDropDownColumn DataField="Customer.CustomerID" 
                        DataSourceID="LinqDataSource2" HeaderText="DropDown Name" 
                        ListTextField="ContactName" ListValueField="CustomerID" 
                        UniqueName="DropDownName" DropDownControlType="RadComboBox"
                        SortExpression="Customer.ContactName">  
                    </telerik:GridDropDownColumn>  
                </Columns>
            </MasterTableView>
        </telerik:RadGrid>        
        <asp:LinqDataSource runat="server" ID="LinqDataSource1" 
            ContextTypeName="DataClassesDataContext" TableName="Orders">
        </asp:LinqDataSource>        
        <asp:LinqDataSource runat="server" ID="LinqDataSource2" 
            ContextTypeName="DataClassesDataContext" TableName="Customers">
        </asp:LinqDataSource>
    </div>
    </form>
</body>
</html>
