TelerikDatePicker on focus: have cursor position on left starting position

1 Answer 334 Views
DatePicker
Robert
Top achievements
Rank 1
Iron
Iron
Robert asked on 07 Nov 2022, 10:09 PM

Is there a way to have the cursor position on the left starting position of the textbox when the textbox gets the focus when the user tabs to the control?

It now always starts at the right most position after the format: dd-MM-yyyy <-- here

I guess if the control has an onFocus event it would be possible using javascript.

thx in advance!

 

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 10 Nov 2022, 08:52 AM

Hi Robert,

Thank you for the provided a detailed explanation of the scenario you are working on. Indeed, the focus should not be placed at the end of the placeholder text and it is a defect on our side. We already have an item in our feedback portal where you can track its progress:

https://feedback.telerik.com/blazor/1578528-focusasync-puts-cursor-at-end-of-input

After the above is implemented to focus the start of the input, there will not be a need for you to attach a JS event and manually reposition the cursor. 

Regards,
Tsvetomir
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/.

Tags
DatePicker
Asked by
Robert
Top achievements
Rank 1
Iron
Iron
Answers by
Tsvetomir
Telerik team
Share this question
or