Hi,
I am using raddatepicker for selecting the dates. my scenario when i select the startdate , on click of enddate raddatepicker, the start date value should be pre-populated. I am using javascript to achieve this function. But i am unable to achieve the same. Below is the code.
I am passing the clientId because the raddatepicker is in userControl and i am calling the javascript method in parent page.
Problem is when i am passing clientId it is always going as string. Let me know if anything i need to do.
<telerik:RadDatePicker ID="rdDPStartDate" runat="server" Height="20px" onclick=" def(this, 'acd' );"
Width="223px">
</telerik:RadDatePicker>
<br />
<div id="divEndDatePicker" class="DivTxtBox">
<telerik:RadDatePicker ID="rdDpEndDate" runat="server" value="Set Date"
onclick=" setdate(this,'<%=rdDPStartDate.ClientID %>');" Height="20px" Width="223px">
</telerik:RadDatePicker>
function setdate( start,end) {debugger;
dateVar = new Date();
var sd = $find('end');
var startDate = sd.get_selectedDate();
var endDate = $find(start.Id).set_selectedDate(startDate);
// varDate = datePicker.get_selectedDate();
//
// endDatePicker.set_selectedDate(varDate);
}