Hi,
Unfortunately due to the legacy software I'm attempting to integrate RAD controls into jQuery is not available to complete the following task:
These are also quite old versions of the controls but hopefully the principle is the same, the calendar is in the code as:
When the OnFromDateSelected event is fired the following code is called:
The problem I have is that the sender is a RadDatePicker object but I can't get a reference to anything but a HTML Table or Input using Javascript and the DOM. Any idea if it's possible to get the object you can use the method .get_selectedDate() on through vanilla Javascript?
Unfortunately due to the legacy software I'm attempting to integrate RAD controls into jQuery is not available to complete the following task:
These are also quite old versions of the controls but hopefully the principle is the same, the calendar is in the code as:
<radCln:RadDatePicker ID="dpDateFrom" runat="server" Width="100px" Calendar-Width="160px" Calendar-DayNameFormat="FirstLetter" Calendar-EnableMultiSelect="false" Calendar-ShowRowHeaders="false" Calendar-ShowColumnHeaders="true"> <ClientEvents OnDateSelected="OnFromDateSelected" OnPopupUpdating="OnFromDateSelected" /> <Calendar runat="server" Skin="Default"> <SpecialDays> <radCln:RadCalendarDay Date="" Repeatable="Today"> <ItemStyle BackColor="#e0e0e0" /> </radCln:RadCalendarDay> </SpecialDays> </Calendar> </radCln:RadDatePicker>When the OnFromDateSelected event is fired the following code is called:
function OnFromDateSelected(sender, e) { // The from date picker input. var fromDatePicker = document.getElementById("<%= dpDateFrom.ClientID%>"); var fromDateCalendar = document.getElementById("<%= dpDateFrom.ClientID%>" + "_calendar"); fromDateCalendar.get_selectedDate(); // The to date picker input. var toDatePicker = document.getElementById("<%= dpDateTo.ClientID%>");}The problem I have is that the sender is a RadDatePicker object but I can't get a reference to anything but a HTML Table or Input using Javascript and the DOM. Any idea if it's possible to get the object you can use the method .get_selectedDate() on through vanilla Javascript?