<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <%--  <script type="text/javascript">
        function onSubmitClick(a, b) {
            var combo = $find("<%= RadComboBoxADT.ClientID %>");
            var selectedItem = combo.get_selectedItem();
            var text = combo.get_text();
            var value = combo.get_value();
            //alert(combo);
            alert(text);
        }
    </script>--%>
    <script src="scripts.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script>
        window.ControlClientIdCollection = {};
        window.ControlClientIdCollection["RadComboBoxADT"] = "<%= RadComboBoxADT.ClientID %>"
        //window.comboBoxId = "<%= RadComboBoxADT.ClientID %>";
    </script>

    <telerik:RadComboBox ID="RadComboBoxADT" runat="server" RenderMode="Lightweight">
        <Items>
            <telerik:RadComboBoxItem Text="Item 1" />
            <telerik:RadComboBoxItem Text="Item 2" />
            <telerik:RadComboBoxItem Text="Item 3" />
            <telerik:RadComboBoxItem Text="Item 4" />
        </Items>
    </telerik:RadComboBox>
    <telerik:RadButton ID="btnSubmit" runat="server" Text="Submit" OnClientClicked="onSubmitClick" SingleClick="true"
        SingleClickText="Processing..." AutoPostBack="false" />
</asp:Content>

