This is a migrated thread and some comments may be shown as answers.

Set properties on client

1 Answer 72 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
John Hadjioannou
Top achievements
Rank 1
John Hadjioannou asked on 26 Jun 2010, 01:24 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 28 Jun 2010, 07:54 AM
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.
Tags
ComboBox
Asked by
John Hadjioannou
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or