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

Use RadDateTimePicker as Month Picker

3 Answers 236 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Cheau-Long
Top achievements
Rank 1
Cheau-Long asked on 14 Apr 2011, 07:45 PM
Hi Telerik,

I want to use RadDateTimePicker for selecting month only without concerning date and year. I have implemented as shown in the screenshot below. How can I hide the left right arrow, and custom the title from the dropdown header?



Thanks!
 Cheau

3 Answers, 1 is accepted

Sort by
0
Pana
Telerik team
answered on 18 Apr 2011, 09:02 AM
Hi,

There is an event which you can use to convert the text input into DateTime. You have to override it to make it parse months only. Also you can change the culture to display only the month names and finally you can create a style for RadCalendar to make the RadCalendar in the DropDown hide its header. Check how all of this is done in the attached project.

Kind regards,
Pana
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
Cheau-Long
Top achievements
Rank 1
answered on 18 Apr 2011, 05:58 PM
Hi Pana,
Thanks for your help. Your solution works beautifully!

Best regads,
Cheau
0
Pana
Telerik team
answered on 19 Apr 2011, 06:14 AM
Hello,

I am glad the project have solved your problem. If you have further questions do not hesitate to contact us again.

Regards,
Pana
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
Tags
DateTimePicker
Asked by
Cheau-Long
Top achievements
Rank 1
Answers by
Pana
Telerik team
Cheau-Long
Top achievements
Rank 1
Share this question
or