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

ComboBox like Gmail Inbox

1 Answer 31 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Dev D
Top achievements
Rank 2
Dev D asked on 06 Jan 2009, 09:15 AM

Hello,
 
I want a dropdown like the one in gmail Inbox. When we select "More Actions", it shows the items and even we select anyone, it performs the task and still shows "More Action" as selected value. How to perform this tasks using Rad Combobox??

Please give the code if possible.

Thanks in Advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 06 Jan 2009, 10:36 AM
Hi Shailendrasinh,

Try adding the below JavaScript in order to achieve desired functionality.

JavaScript:
<script type="text/javascript"
function pageLoad() 
    SetComboText(); 
function SetComboText() 
    var combo = $find("<%= RadComboBox1.ClientID %>");    
    combo.set_text("More Actions");  
</script> 

ASPX:
<telerik:RadComboBox ID="RadComboBox1" Runat="server" DropDownWidth="200px" onclientdropdownclosed="SetComboText"
<Items> 
    <telerik:RadComboBoxItem Text="ComboItem1" /> 
    <telerik:RadComboBoxItem Text="ComboItem2" /> 
</Items> 
</telerik:RadComboBox> 

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