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

Attach ClientEvents-OnDateSelected from JavaScript

0 Answers 66 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Jorgen Vester
Top achievements
Rank 1
Jorgen Vester asked on 12 Jun 2017, 11:20 AM

 

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
 

No answers yet. Maybe you can help?

Tags
DatePicker
Asked by
Jorgen Vester
Top achievements
Rank 1
Share this question
or