Set properties on client

2 posts, 1 answers
  1. John Hadjioannou
    John Hadjioannou avatar
    30 posts
    Member since:
    Dec 2005

    Posted 25 Jun 2010 Link to this post

    I need to set two properties of a ComboBox from javascript on the client side -

    AllowCustomText, and
    ShowDropdownOnClick

    I can't find the methods / properties to do this - is it possible?

    Thanks
    John
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 28 Jun 2010 Link to this post

    Hello,

    Here is the client side cod that I tried to acoomplish same functionality. Give a try with this and see whether it helps.

    client code:
     
        function toggleProperties() { 
            var combo = $find("<%= RadComboBox1.ClientID %>"); 
            combo.trackChanges(); 
     
            // allow/disallow user to type feature 
            combo.get_inputDomElement().readOnly = !combo.get_inputDomElement().readOnly; 
     
            // show/prevent dropdown on clicking the textbox 
            combo._showDropDownOnTextboxClick = !combo._showDropDownOnTextboxClick; 
     
            combo.commitChanges(); 
        } 


    Regards, :)
    Shinu.
Back to Top