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

Preselected text in input on Incell edit mode

1 Answer 61 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Ciprian Daniel asked on 24 Nov 2020, 11:55 AM

Hi guys,

Is there a possibility in incell edit mode, on edit, when a text/numeric input shows up, from the EditTemplate, it's text to be selected by default?

What I want to achieve is the following: in a numeric input we have the default value of zero. I want that value to be selected as when the user does a copy+paste in the input that value will be overwritten. If it's not selected the cursor appears after that value so when the user does a copy+paste then the new value will be concatenated with the value that was present in the input before the copy+paste, which is an issue that I don't want to achieve.

 

I hope you understood what I want to achieve.

Best regards,

Cipri

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 24 Nov 2020, 12:33 PM

Hi Cipri,

You can Follow the implementation of such a built-in feature for the numeric tetbox here: https://feedback.telerik.com/blazor/1454982-always-highlight-all-numerictextbox-content-on-focus. The thread also offers a solution you can use for the time being.

 

Regards,
Marin Bratanov
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
TreeList
Asked by
Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Marin Bratanov
Telerik team
Share this question
or