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

RadComboBox appearance

1 Answer 80 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
y
Top achievements
Rank 1
y asked on 20 Nov 2008, 10:26 PM
I have a few questions about altering the appearance of a RadComboBox:

How would I force the drop down to always appear under the RadComboBox?

How would I change the mouse over color when the cursor hovers over th items?

thanks

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 21 Nov 2008, 06:41 AM
Hi,

You can call the "showDropDown()" method inside "OnClientDropDownClosed" of RadComboBox, so that the dropdown will remain as opened. Also you can apply style for changing the color of the RadComboBoxItem.

CSS:
<style type="text/css">  
.RadComboBoxDropDown_Default .rcbHovered  
{  
    background:Green !Important;  
    color:#ccc;  
}  
</style> 

ASPX:
<telerik:RadComboBox ID="RadComboBox1" Runat="server" OnClientDropDownClosed="dropdown">  
    <Items> 
        <telerik:RadComboBoxItem Text="Item1" /> 
        <telerik:RadComboBoxItem Text="Item2" /> 
    </Items>          
</telerik:RadComboBox> 

JavaScript:
<script type="text/javascript">  
function dropdown()  
{  
    var combo = $find("<%= RadComboBox1.ClientID %>");  
    combo.showDropDown();  
}  
</script> 


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