RadDatePicker different date

3 posts, 1 answers
  1. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 02 Apr 2013 Link to this post

    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. Answer
    Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 05 Apr 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Darren
    Darren avatar
    72 posts
    Member since:
    Oct 2006

    Posted 05 Apr 2013 Link to this post

    Thanks, it works perfectly.
Back to Top