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

[Solved] showdrop set to true when not not showing

2 Answers 137 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
pasam Anna
Top achievements
Rank 1
pasam Anna asked on 29 Oct 2009, 01:01 AM
Hi
   I need Javascript for showdrop visible=true when not showing dropdown

For ex
    var combo =$find("<%= ddlGC.ClientID %>");
If(combo.showdropdown==false){
combo.showdropdown;
}
But when i set like this its flickering.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 29 Oct 2009, 06:25 AM
Hi Pasam Anna,

I hope you want to show the dropdown from client side code. If so you can try the following approach.

JavaScript:
 
<script type="text/javascript"
    function openDropdown() { 
        var combo = $find("<%= ddlGC.ClientID %>"); 
        combo.showDropDown(); 
    } 
</script> 
You can also refer the following documentation for important client side methods of RadComboBox:
RadComboBox object

-Shinu.
0
Accepted
pasam Anna
Top achievements
Rank 1
answered on 29 Oct 2009, 07:15 AM
Hi
Thanks for your mail.
But what your posted is only show the Dropdown

I found this code fromthe forums.
This only i exactly wanted

if(combo.get_dropDownVisible() ==false)
        {  
          combo.showDropDown();  
        }
Tags
ComboBox
Asked by
pasam Anna
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
pasam Anna
Top achievements
Rank 1
Share this question
or