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

RadDatePicker different date

2 Answers 37 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 02 Apr 2013, 04:24 PM
When the RadDatePicker popup opens up I would like to display dates that are different from what is already selected. For example the selected date could be 1/1/1900 but when the popup opens up I want to display the calendar for April 2013. How can I do this? Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 05 Apr 2013, 01:29 PM
Hi Darren,

Thank you for contacting us.

Please try the following approach:
<telerik:RadDatePicker ID="RadDatePicker1" runat="server" SelectedDate="1990/1/1"
    ClientEvents-OnPopupOpening="popUpOpening">
</telerik:RadDatePicker>
JavaScript:
function popUpOpening(sender, args) {
    setTimeout(function () {
        args.get_popupControl().navigateToDate([2012, 12, 12]);
    }, 2);
}

Hope this helps. Please give it a try and let me know if it works for you.

Kind regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Darren
Top achievements
Rank 1
answered on 05 Apr 2013, 07:08 PM
Thanks, it works perfectly.
Tags
Calendar
Asked by
Darren
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Darren
Top achievements
Rank 1
Share this question
or