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

Month Picker in KendoReact

1 Answer 1047 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 01 Oct 2019, 07:43 AM

Does KendoReact provide a Month Picker control? 

I tried looking into the DatePicker component, but it seems that while you can edit the format of the selected date to show it in "MM yyyy" format , I didn't find a way to remove the actual days from the popup calendar and have it show up as a true month selector.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 01 Oct 2019, 11:11 AM

Hello, Daniel,

This can be achieved using a custom Calendar component and setting its bottomView and topView props:

https://www.telerik.com/kendo-react-ui/components/dateinputs/api/DatePickerProps/#toc-calendar

https://www.telerik.com/kendo-react-ui/components/dateinputs/api/CalendarProps/#toc-bottomview

https://www.telerik.com/kendo-react-ui/components/dateinputs/api/CalendarProps/#toc-topview

This is an example of how it can be done:

https://stackblitz.com/edit/react-jc7gwb?file=app/main.jsx

I hope this is helpful.

Regards,
Stefan
Progress Telerik

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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Daniel
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or