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

Use DatePicker only to choose Year and Month

6 Answers 1628 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Luis Antunes
Top achievements
Rank 1
Luis Antunes asked on 18 Feb 2010, 01:03 PM
Hi!

I would like to know if there is a way of using DatePicker only to choose year and month, without specifying the day.
I can use the DisplayMode="YearView", but when I click in some month, it opens the month view.

Is there a way of doing this?

Best regards!
Luis Antunes

6 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 19 Feb 2010, 09:29 AM
Hello Luis Antunes,

There is no way to accomplish this functionality. The RadDatePicker is only able to select a full date.

Kind regards,
Kaloyan
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Luis Antunes
Top achievements
Rank 1
answered on 19 Feb 2010, 10:34 AM
Ok.
Thanks for the answer anyway.

I leave the suggestion of this functionality though :)

Best Regards
Luis Antunes
0
Marc Roussel
Top achievements
Rank 2
answered on 06 May 2013, 01:02 PM
+1
Would be nice to have such fonctionality
meanwhile we have to do our own control
0
Ivo
Telerik team
answered on 09 May 2013, 08:07 AM
Hi Marc,

Actually this can now be easily achieved by setting the Culture.DateTineFormat.ShortDatePattern property of the RadDatePicker. Here is sample code:
var culture = (CultureInfo)Thread.CurrentThread.CurrentCulture.Clone();
culture.DateTimeFormat.ShortDatePattern = "MM yyyy";
this.DatePicker.Culture = culture;
 
Greetings,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Marc Roussel
Top achievements
Rank 2
answered on 09 May 2013, 03:32 PM
And you forgot to mention that we need to set the property DateSelectionMode to Month
0
Ivo
Telerik team
answered on 13 May 2013, 08:06 AM
Hi Marc,

You are absolutely right. Thank you for this clarification.

Kind regards,
Ivo
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
DatePicker
Asked by
Luis Antunes
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Luis Antunes
Top achievements
Rank 1
Marc Roussel
Top achievements
Rank 2
Ivo
Telerik team
Share this question
or