Copy-paste datepicker

1 Answer 75 Views
DatePicker
Ziggy
Top achievements
Rank 1
Ziggy asked on 27 Mar 2024, 07:58 AM

Hello everyone,

I've been trying to find a simple method to copy a date from one datepicker and paste it into others since the usual Ctrl+C and Ctrl+V shortcuts don't seem to work. So far, I haven't discovered an easy solution other than utilizing events directly on the datepicker itself. However, this approach doesn't work when trying to copy a date from another source. If anyone has any alternative suggestions or solutions, I'd greatly appreciate it.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 03 Apr 2024, 09:50 AM

Hello, Ziggy,

By default, when you click inside a DatePicker the focus is set to the months placeholder. You can use the Ctrl+C and Ctrl+V shortcuts in order to copy a date from one DatePicker to another, but you will need to press Ctrl+A first in order to select the whole date placeholders from the second DatePicker:

You can test the described approach here: https://stackblitz.com/edit/react-adcevc?file=app%2Fmain.tsx 

Regards,
Vessy
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources

Ziggy
Top achievements
Rank 1
commented on 03 Apr 2024, 10:16 AM

Hello Vessy,

Thank you for your response.
I see that you're doing this for React. Indeed, this works for React, but unfortunately, it doesn't work for Vue.  
Here's a screenshot of what happens when I try this in Vue.


Kind regards,

Ziggy

Vessy
Telerik team
commented on 08 Apr 2024, 12:17 PM

You are absolutely correct - the copy-paste behavior in the DatePicker is different in KendoReact and Kendo UI for Vue. Therefore, I opened a feature request on your behalf in our Feedback portal, you can track its progress here:

Tags
DatePicker
Asked by
Ziggy
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or