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

RadCalendar hide year in FastNavigation

2 Answers 78 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Laurens
Top achievements
Rank 1
Laurens asked on 20 Sep 2013, 09:51 AM
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 Answers, 1 is accepted

Sort by
0
Venelin
Telerik team
answered on 25 Sep 2013, 07:26 AM
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.
0
Laurens
Top achievements
Rank 1
answered on 25 Sep 2013, 01:18 PM
Thank you, I doubted if it was posible.
Tags
Calendar
Asked by
Laurens
Top achievements
Rank 1
Answers by
Venelin
Telerik team
Laurens
Top achievements
Rank 1
Share this question
or