RadCalendar hide year in FastNavigation

3 posts, 0 answers
  1. Laurens
    Laurens avatar
    12 posts
    Member since:
    Sep 2013

    Posted 20 Sep 2013 Link to this post

    Hi,

    I'm looking for a way to hide the year (everywhere) in a RadDatePicker. My intention is to just hide it, so it wil seem to the user that he only has to select a date and month, and that he doesn't has to mind selecting a year. So far I have:
      RadDatePicker1.DateInput.DateFormat = "dd/MM"
    RadDatePicker1.Calendar.TitleFormat = "MMMM"
    What I believe is left over is the year-selection-part in the month/year popup in RadCalendar.
    Besides "RadDatePicker1.Calendar.EnableMonthYearFastnavigation = false", I'd like it if there was some way to just hide the year-selection-part. 
    Is there a way for this?

    Thanks!
  2. Venelin
    Admin
    Venelin avatar
    352 posts

    Posted 25 Sep 2013 Link to this post

    Hello Laurens,

    You can easily achieve the desired appearance by adding the following CSS to your page styles:

    .RadCalendarMonthView tr td:first-child + td + td,
    .RadCalendarMonthView tr td:first-child + td + td + td {
        display: none;
    }

    I hope this helps.

    Regards,
    Venelin
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Laurens
    Laurens avatar
    12 posts
    Member since:
    Sep 2013

    Posted 25 Sep 2013 Link to this post

    Thank you, I doubted if it was posible.
Back to Top