change the years you are able to see in the MonthYearFastNavigation

3 posts, 0 answers
  1. Lex
    Lex avatar
    9 posts
    Member since:
    Mar 2014

    Posted 06 Jun 2014 Link to this post

    We limit the selection of dates to the last 5 years, however by default the MonthYearFastNavigation shows the last 4 years, current year and the next 5 years. I was wondering if the user is able to change is so that dates that are not selectable won't show up either and that the user can see all the years that they can select from.

    For the current year the user can see the years 2010 to 2019. But what we really want to show is 2009 to 2014 because those are the only years that the user can select dates from.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Jun 2014 in reply to Lex Link to this post

    Hi Lex,

    Please have a look into the sample code snippet which showing the only the current year and next 5 years in MonthYearFastNavigation.

    <telerik:RadCalendar ID="RadCalendar1" runat="server">

    protected void Page_Load(object sender, EventArgs e)
        DateTime now = DateTime.Now;
        RadCalendar1.RangeMinDate = now;
        RadCalendar1.RangeMaxDate = now.AddYears(5);

        visibility: hidden !important;

    Let me know if you have any concern.
  3. Lex
    Lex avatar
    9 posts
    Member since:
    Mar 2014

    Posted 06 Jun 2014 in reply to Princy Link to this post

    Hi Princy,

    That is not exactly what I was looking for.

    What I want to do is to only show the range of dates that you can select on one page.

    Currently the start year 2009 is on the previous page, what I want to do is show 2009 to 2014 on 1 page.
Back to Top