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

RadDate.clear() not showing Calendar

1 Answer 82 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
David Penny
Top achievements
Rank 2
David Penny asked on 24 Feb 2009, 12:42 PM
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:
<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

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 26 Feb 2009, 09:07 AM
Hi David,

I have found one forum thread discussing a similar issue "Clear datepicker value "

And also here is theonline demo explaining the date clear functionlaity

-Shinu.
Tags
Calendar
Asked by
David Penny
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Share this question
or