Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Get Selected Value from ComboBox on MasterPage through JavaScript
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Get Selected Value from ComboBox on MasterPage through JavaScript

Feed from this thread
  • Loren avatar

    Posted on Apr 6, 2011 (permalink)

    I need a way to get the selected value from a combobox on the masterpage through Javascript. Any Help?

  • Posted on Apr 7, 2011 (permalink)

    Hello Joe,
    I am not quite sure about your scenario and here I pasted the code for accessing the RadComboBox either from Master page or Content page.

    aspx:ContentPage
    //Button in content page   
    <asp:Button ID="Button3" runat="server" onclick="Button3_Click" Text="Button" OnClientClick="accessrCombo();" />

    javascript:
    //Function in content page
    function accessCombo()
    {
           var ComboId = $find('<%=((RadComboBox)Master.FindControl("RadComboBox1")).ClientID %>');
            alert(ComboId.get_value());
    }
     //Function in MasterPage
    function accessCombo()
     {
            var combo = $find('<%=RadComboBox1.ClientID%>');
            alert(combo.get_value());
        }


    Thanks,
    Shinu.

  • Loren avatar

    Posted on Apr 7, 2011 (permalink)

    I tried that before.. The object that I create comes out null.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Combobox > Get Selected Value from ComboBox on MasterPage through JavaScript