Hi,
I'm having trouble getting a reference to a RadComboBox client-side, the combo box is contained within an ASP.NET repeater control.
I'm using the Telerik $find() method to get a reference to the control in JavaScript.
Below is an example of the code i'm using.
- All elements with an ID ending with "cmbFunction" are selected and stored in the variable "functionComboboxes", this works fine.
- Next, for each found element a reference to the RadComboBox is gotten, this fails (I get a null reference).
This technique works when the RadComboBox is not contained within an ASP.NET repeater control.
Does anyone have an idea what the proper way is, to do what i'm trying?
| $(document).ready( function() {
|
| var functionComboboxes = $("* [id$='cmbFunction']"); |
| functionComboboxes.each(function() { |
| var comboBoxId = $(this).attr('id'); |
| var comboBox = $find(comboBoxId); |
| FilterIdentification(comboBox); |
| }); |
| }); |