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

Show dropdown on client side

1 Answer 98 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 03 Feb 2009, 02:51 PM
Hi!
I have a radcombobox on form, and I want to show drop down on client side in button click event handler. Everything is fine, but I am not able to choose any item in the first time (they are even not highlighted when mouse pointer is over them). When I open it the second time etc it works as it should.
The same effect is in demo: http://demos.telerik.com/aspnet-ajax/combobox/examples/programming/addremovedisableitemsclientside/defaultcs.aspx
Just open the page and click on "Open/Close Drop-Down" button, and first time you shouldn't be able to choose any item.
This problem is exists in IE 6 and IE 7 and doesn't exist under FireFox.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Feb 2009, 10:56 AM
Hello Anton,

You can replace the code with the following code which should work in IE.
cs:
function ToggleDropDown() 
    {     
        var combo = $find("RadComboBox1"); 
        combo.set_closeDropDownOnBlur(false);         
        combo.toggleDropDown(); 
         var comboItem = combo.get_items().getItem(0); 
         comboItem.enable(); 
    }  
 

Thanks
Princy.
Tags
ComboBox
Asked by
Anton
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or