I wonder is there any way for me to have a year-only datepicker. Without month or date. How can I customize the component to suit my need?
Thanks!
1 Answer, 1 is accepted
1
Accepted
Konstantin Dikov
Telerik team
answered on 18 Nov 2021, 08:04 AM
Hello Agus,
The DatePicker gives the developer an option to define custom format, which will allow you to show only the year. As for the popup, you can limit the view to Year/Months as shown in the following example, by providing custom Calendar:
Another option would be to use NumericTextBox or DropDownList with predefined list of years and manually parse the values to Date object.
Hope this helps.
Regards,
Konstantin Dikov
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.