Hey everyone!
To update anyone following this item, as well as anyone landing on this page at a later time, with the 4.6.0 release of KendoReact (or R2 2021 for those more familiar with the regular Kendo UI releases) we introduced built-in floating labels for both the DatePicker and DateTimePicker:
KendoReact DatePicker - Floating Labels demo
KendoReact DateTimePicker - Floating Labels demo
With this update I'm not marking this item as complete!
Regards,
Carl
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/.
Hello, John,
The feature is already planned, there is no need for extra votes.
In fact, it was planned a couple of months ago, but unfortunately, there were other high-priority tasks that came in the middle of the planning and this feature had to be postponed as it has a workaround.
Regards,
Stefan
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/.
Any update for the upcoming 2 year anniversary of this feature request? Thanks! Is it still considered or waiting on upvotes?
Hello, Abhilash,
Thank you for noticing this.
This occurs as we are passing directly a function in the render, but React does not keep function references for function inside render or in functional components.
In this case, we have to make the custom component outside of the app component and pass the needed custom props via the React context:
https://stackblitz.com/edit/react-gmieju-vgxeiy?file=app/main.jsx
Still, as I mentioned this is only a workaround and it is not fully tested, the official support will be available after the DatePicker is updated.
Regards,
Stefan
Progress Telerik
Hi Stefan,
Thank you so much for your help, But it's automatically loosing the focus when we are entering a year(yyyy)(refer to attached picture). Please help me on that
Hello, Abhilash,
This will require changing the logic for the custom input to show the standard input only before focus and adding the required format placeholder:
https://www.telerik.com/kendo-react-ui-develop/components/dateinputs/datepicker/placeholders/
This is the modified example:
https://stackblitz.com/edit/react-gmieju-vgxeiy?file=app/main.jsx
Regards,
Stefan
Progress Telerik
Hi Stefan,
Thank you very much for the reply, it works great and as expected. But, one last thing is I'm trying to show the default as mm/dd/yyyy instead of 12/31/1969. Tried various things using placeholders, but it ended up with the date. Pleas help me on that.
Thank you,
Abhilash Rainchu
Hello, Abhilash,
After we added the labels package in the last release this is possible with some modifications:
https://stackblitz.com/edit/react-gmieju?file=app/main.jsx
Still, we are planning some modifications this quarter for the DatePicker/DatetimePicker that will also allow the floating label to wort out of the box, this is why this item is still not considered as completed on our end.
Regards,
Stefan
Progress Telerik
Hello, Anthony,
This is in our ToDo list.
The specific ETA will strongly depend on the complexity of the task and other priority tasks that occur.
We will update the status, once we have a more specific date.
Regards,
Stefan
Progress Telerik
In a screen where all the fields have floating labels and only the date and or datetime pickers do not have it, it looks very unprofessional.
Please add it soon.