<%@ 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.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
    .RadComboBox_Default .rcbInputCell .rcbInput
    {
        height : auto !important;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <AjaxSettings>
                    <telerik:AjaxSetting AjaxControlID="Button1">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel4" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                    <telerik:AjaxSetting AjaxControlID="Panel4">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="Panel4" />
                        </UpdatedControls>
                    </telerik:AjaxSetting>
                </AjaxSettings>
            </telerik:RadAjaxManager>
                   
                
            <asp:Button ID="Button1" runat="server" Text="Toogle" OnClick="Button1_Click" />
            <asp:Panel ID="Panel4" runat="server">
                <asp:Panel ID="Panel3" runat="server" Visible="false">
                    <table class="formtable" style="width: 100%;">
                        <tr>
                            <td>
                                <telerik:RadComboBox ID="rcbAirline" runat="server" Width="75px" DataTextField="Code"
                                    DropDownWidth="320px" OnItemsRequested="AirlineCode_ItemsRequested" EnableLoadOnDemand="true">
                                    <HeaderTemplate>
                                        <table style="width: 275px" cellspacing="0" cellpadding="0">
                                            <tr>
                                                <td style="width: 75px;">
                                                    <asp:Literal ID="Literal14" runat="server" Text="AirlineCode" /></td>
                                                <td style="width: 200px;">
                                                    <asp:Literal ID="Literal15" runat="server" Text="Name >" /></td>
                                            </tr>
                                        </table>
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <table style="width: 275px">
                                            <tr>
                                                <td style="width: 75px;">
                                                    <div>
                                                        <%# DataBinder.Eval(Container.DataItem, "Code")%>
                                                    </div>
                                                </td>
                                                <td style="width: 200px;">
                                                    <div>
                                                        <%# DataBinder.Eval(Container.DataItem, "Description")%>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </ItemTemplate>
                                </telerik:RadComboBox>
                            </td>
                            <td>
                                Another Control</td>
                            <td>
                                Another Control</td>
                            <td>
                                Another Control</td>
                        </tr>
                    </table>
                </asp:Panel>
            </asp:Panel>          
        </div>
    </form>
</body>
</html>
