Hi,
I have two RadDatePickers on a form, using a shared Calendar, and all works OK expect I want to clear then down on a button click (server side, because other controls are also being cleared). It does clear the datepickers OK, but afterwards the shared Calendar does not appear when I click on the calendar button on either date. Any idea why?
Definition in aspx:
Code used on button_click:
Before I run this code the datepicker button works. After running the code the datepicker button does not work. I have also tried adding: dateFrom.SharedCalendar = RadCalendar1 afterwards and still no Calendar being displayed.
David Penny
I have two RadDatePickers on a form, using a shared Calendar, and all works OK expect I want to clear then down on a button click (server side, because other controls are also being cleared). It does clear the datepickers OK, but afterwards the shared Calendar does not appear when I click on the calendar button on either date. Any idea why?
Definition in aspx:
<telerik:RadDatePicker ID="dateFrom" runat="server" |
SharedCalendarID="RadCalendar1" AutoPostBack="True" |
Culture="English (United Kingdom)"> |
<DateInput runat="Server" AutoPostBack="True"> |
</DateInput> |
<Calendar runat="server" UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" |
ViewSelectorText="x"> |
</Calendar> |
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> |
</telerik:RadDatePicker> |
Code used on button_click:
dateFrom.Clear() |
dateTo.Clear() |
Before I run this code the datepicker button works. After running the code the datepicker button does not work. I have also tried adding: dateFrom.SharedCalendar = RadCalendar1 afterwards and still no Calendar being displayed.
David Penny