I see that everywhere is used $find("<%=RadTimePicker1.ClientID %>"); to get a reference to the timePicker object. This works fine if the timePicker control is a static element added to the asp page.
But, what if the timePicker control is a column from a grid(table), and is bound to a list, so it will be generated dynamically, according to the datasource.
<asp:TemplateField HeaderText="End time">
<telerik:RadTimePicker ID="timePickToHour" runat="server" SelectedDate ='<%# Bind("ToHour") %>' Width="70px"></telerik:RadTimePicker>
In this case, doesn't seem to work $find("<%=timePickToHour.ClientID %>") because I get the following error:
"The name 'timePickToHour' does not exist in the current context."
What I need to achieve is to get the value of two RadTimePicker from the same table row and to calculate the difference between them.
Can you help me with this please?