This article shows how to get an instance of Telerik RadComboBox on the Client-side and how to operate with it:
| |
Copy Code |
|
<script language="javascript" type="text/javascript"> ... //Define the combobox server ID as RadComboBox1: var comboInstance = <%=RadComboBox1.ClientID %>;
//After you got the client-side instance of the combobox, you can operate with it as follows: var selectedValue = "The selected value of Telerik RadComboBox is" + comboInstance.GetValue(); ... </script> |
Another possible approach is using the tlrkComboBoxes[] array that contains the client-side objects of all comboboxes on the page:
| |
Copy Code |
|
<script language="javascript" type="text/javascript"> ... var selectedValue = "The selected value of Telerik RadComboBox is" + tlrkComboBoxes[0].GetValue(); ... </script> |
See Also