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

selected item

1 Answer 73 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 14 Feb 2012, 01:18 PM
What is the client event for getting the selected text in combobox
aspx
<telerik:RadComboBox ID="RadComboBox1" runat="server" Height="300px" >
         <Items>
                <telerik:RadComboBoxItem Text="Room1" />
                 <telerik:RadComboBoxItem Text="Room2" />
</Items>
        </telerik:RadComboBox>

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Feb 2012, 01:28 PM
Hello,

Try the following code.
JS:
function OnClientSelectedIndexChanged(sender, args)
{
   alert(sender.get_selectedItem().get_text());
}

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