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

Visible only the year

3 Answers 76 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
sam Aryan
Top achievements
Rank 1
sam Aryan asked on 06 Aug 2010, 03:32 PM
Hi there,

I just want to visible the year only. I don't want to show the rest of them. I can see there is a property that you can show only the year ( DisplayMode="DecadeView" )  But when i click on the year i want the calendar close i don't want the calendar show me the month. basically i want the month and day hidden.

thanks

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 10 Aug 2010, 12:06 PM
Hi sam Aryan,

Thank you for contacting us.

With Q2 2010 release we introduces a new control - DateTimePicker. With it you can achieve the desired behaviour. First, you need to set its InputMode property to DatePicker and then set the DateSelectionMode property to Year.

If you have further questions please let us know.

Kind regards,
Konstantina
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
sam Aryan
Top achievements
Rank 1
answered on 10 Aug 2010, 03:07 PM
Hi There,

Thank you for your reply. it work fine but there is something if i wanna pick only the year i don't want to show the month and day on the field after when you close the calendar.

thanks
0
Konstantina
Telerik team
answered on 11 Aug 2010, 12:46 PM
Hi sam Aryan,

To customize the format of the date in the TextBox of the DateTimePicker control you can set its Culture property to fit your requirements.

Let us know if you need further assistance.

All the best,
Konstantina
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
DatePicker
Asked by
sam Aryan
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
sam Aryan
Top achievements
Rank 1
Share this question
or