<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!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>
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div>
            <asp:Panel ID="pnlSearch" DefaultButton="btnSearch" runat="server">  
            <label>I'm looking for:</label>  
            <noscript>  
                <asp:TextBox ID="txtSearchTermNoScript" runat="server" CssClass="textInput" />  
            </noscript>  
            <telerik:RadComboBox ID="txtSearchTerm" runat="server" AllowCustomText="true"  
                MarkFirstMatch="false" EnableLoadOnDemand="true" Width="280px" Height="168px"   
                 onitemsrequested="txtSearchTerm_ItemsRequested" OnClientKeyPressing="keyPressHandler">  
                <CollapseAnimation Duration="200" Type="OutQuint" /> 
            </telerik:RadComboBox>  
            <label>in&hellip;</label>  
            <asp:DropDownList ID="ddlSearchCollection" runat="server" CssClass="dropDownBox" />  
            <asp:Button ID="btnSearch" runat="server" Text="test" OnClick="btnSearch_Click" />  
</asp:Panel>  
            <script type="text/javascript">
                function keyPressHandler (sender, args)
                {
                    if (args.get_domEvent().keyCode == 13)
                    {
                        var searchBtn = $get('btnSearch');
                        
                        if (searchBtn)
                        {
                            searchBtn.click();
                        }
                    }
                }
            </script>
        </div>
    </form>
</body>
</html>
