I use a combination of different controls in an ASP.Net Repeater. Included are now already 2 RadComboBoxes. I add the SelectedIndexChanged to them in this way:
for (var i = 0; i <
aClientIds.length
; i++) {<br> var comboBox = $find(aClientIds[i]);<
br
> var id = comboBox.get_id();<
br
> comboBox.add_selectedIndexChanged(ddlList_SelectedIndexChanged);<
br
>}
The list of ClientIds are saved to a hidden field from Codebehind and retrieved to a JavaScript array in the js.file associated with the usercontrol where the Repeater is shown. Works nicely. I also must include a RadDatePicker and attach ClientEvents-OnDateSelected in the same way. Already have this working and get the correct id:
for (var i = 0; i <
aDateClientIds.length
; i++) {<br> var calendar = $find(aDateClientIds[i]);<
br
> var id = calendar.get_id();<
br
> alert('id:' + id);<
br
>}
But how do I attach ClientEvents-OnDateSelected from JavaScript? I can't find this in the Telerik documentation or on Google.
My Company uses Telerik.Web.UI version 2015.3.1111.45