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

[Solved] Problem in Changing MinDate to RadCalenar

4 Answers 239 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Rajesh Potru
Top achievements
Rank 1
Rajesh Potru asked on 21 Jul 2009, 02:35 PM
Hello,

We have an application which was already developed by previous developer.We implemented Telerik controls alot.
There is radcalendar which is taking the min value as 1980/01/01. But we need to change it some where around 1950.
I tried to set the value using RangeMinDate property like below.
 
<radCln:RadCalendar ID="sharedCalendar" EnableMultiSelect="false" RangeMinDate="1960/01/01"
            runat="server">
        </radCln:RadCalendar>


But it is not working.It is taking only as 1980/01/01. Please help me out.

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 22 Jul 2009, 04:33 PM
Hi Rajesh,

Try setting the RangeMinDate property of the Calendar to 1/1/1960, to prevent the calendar from taking the default value of 1/1/1980 as shown below:
aspx:
<telerik:RadCalendar ID="sharedCalendar" EnableMultiSelect="false" RangeMinDate="1/1/1960" 
            runat="server">               
 </telerik:RadCalendar>    
        
 <telerik:RadDatePicker ID="RadDatePicker1" MinDate="1/1/1960"   SharedCalendarID="sharedCalendar" runat="server">           
 </telerik:RadDatePicker>    
        
 <telerik:RadDatePicker ID="RadDatePicker2" MinDate="1/1/1960" SharedCalendarID="sharedCalendar" runat="server">    
 </telerik:RadDatePicker> 

Regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Rajesh Potru
Top achievements
Rank 1
answered on 22 Jul 2009, 05:14 PM
Hello,

Thanks for the response.
I tried the same code that you sent me.But it is not working.It is not taking the values below 1/1/1980.

Please suggest me.
0
Rajesh Potru
Top achievements
Rank 1
answered on 22 Jul 2009, 05:20 PM
Hello,

Thanks for the response.
I tried the same code that you sent me.But it is not working.It is not taking the values below 1/1/1980.

Please suggest me.
0
Pavlina
Telerik team
answered on 23 Jul 2009, 04:30 PM
Hi Rajesh,

Attached to this message is a simple working project that demonstrates the needed approach. Please give it a try and see if it works for you.

Kind regards,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Calendar
Asked by
Rajesh Potru
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Rajesh Potru
Top achievements
Rank 1
Share this question
or