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

Showing Default Year in RADDatePicker Control

1 Answer 52 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Gaurav Gupta
Top achievements
Rank 1
Gaurav Gupta asked on 23 Oct 2009, 07:03 AM
I am using RAD DatePicker Control. When i click on Calendar button  i want the default calendar of 1980 year to get opened instead of present day calendar.

Anybody can please help me..

Regards,
Gaurav

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Oct 2009, 07:39 AM
Hello Gaurav Gupta,

Try attaching OnPopupOpening event and set the focusedDate in the event handler as shown below.

 
<script type="text/javascript"
function OnPopupOpening(sender, args) { 
    date1 = new Date(sender.get_focusedDate().format("MM/dd/yyyy")); 
    date1.setFullYear(1980); 
    sender.set_focusedDate(date1); 
</script> 

-Shinu.
Tags
Calendar
Asked by
Gaurav Gupta
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or