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

How to find RadComboBox which is inside a Datagrid using javascript?

1 Answer 61 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
R.A. Ramkumar
Top achievements
Rank 1
R.A. Ramkumar asked on 31 Jan 2009, 12:44 PM
Hi @,
Is there any way to find RadCombo Box in javascript.
I want to find out the selected value or item of RadCombo box which is inside a Datagrid using javascript.

Thanks in advance,

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 02 Feb 2009, 11:08 AM
Hi R.A. Ramkumar,

There are basically two ways of getting a client-side instance of a RadComboBox.

One is to find the control by its ClientID using this JavaScript code:

var combo = $find("<%= RadComboBox1.ClientID %>"); 

However, in case the control is located in DataGrid, its ClientID may be different and you must supply it in order to find the control.

The other approach is to subscribe to a client-side event of the RadComboBox and use the sender parameter which would hold the instance of the control which is firing the event.

Kind regards,
Simon
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
R.A. Ramkumar
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or