RAD ComboBox Enabling And Disabling

5 posts, 0 answers
  1. Joe
    Joe avatar
    3 posts
    Member since:
    Jan 2008

    Posted 15 Jul 2009 Link to this post

    Hi,
    I am using RAD Combox.
    I need the code to make enable or disable the combox by using javascript.

    Also one more problem I m facing..
    If I am disabling the combox in server side code then I am not able to enable it in javascript.

    I use the following line of code in javascript to disable

    document.getElementById(rcComboBox).disabled =

    true;

    My requirement is ..

    One text box and one radcombobox are there.

    Based on some value in the textbox, I have to make disable and enable the combobox and also select value in combox will get change based on the textbox value.

     

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 16 Jul 2009 Link to this post

    Hi Joe,


    Best wishes,
    Simon
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Anne
    Anne avatar
    1 posts
    Member since:
    Nov 2013

    Posted 22 Jan 2014 Link to this post

    I am trying to enable/disable a RadComboBox control using Javascript.  I found this support item, and as suggested I tried to use the Client-side enable and disable methods.   None of the Client-side methods work for me.  Also, I can not use "var combo = $find("<%= RadComboBox1.ClientID %>");" to get a reference to the RadComboBox control.  They don't work for me. 
    I have to use "document.getElementById(rcComboBox).disabled =true", just like Joe states, in order for me to get the reference.  ?????
    I'm not sure why I can't use anything that you've suggested. 
    Could it be because I am using the .NET 3.5 DLL, and not the 4.0 or 4.5 DLLs?  
    I am applying the RadControls to a .aspx file which is deployed to a SharePoint 2010 platform. 
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 27 Jan 2014 Link to this post

    Hello,

    I would like to clarify that we are not aware of such problem with finding the RadComboBox object when this line of code is used "var combo = $find("<%= RadComboBox1.ClientID %>");"


    Since you are able to find the DOM element if you use this line of code document.getElementById(rcComboBox)you can find the RadComboBox client-side object using this expression: var combo = $find(rcComboBox).

    Please note that the reason for this problem could not be due to the fact you are using .NET 3.5. This functionality works fine with .NET 3.5, 4.0 and 4.5




    Regards,
    Boyan Dimitrov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. SURYA
    SURYA avatar
    1 posts
    Member since:
    May 2015

    Posted 27 May 2015 Link to this post

    Hi,

    I m Creating Telerik RadCombobox dynamically inside the repeater, how to get the selected item's text and value of it from javascript by using its id. For using "$find()" whether i have to include any other js file?

     

    Thanks,

     

    Surya prakash R

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017