Hi!
I'd like to request a method "Select" or similiar for input controls. The goal is to select the content of the input control through the component reference.
Hello Srdjan,
You can find two similar requests here:
and Vote for them and Follow them if that's what you're looking for.
Such DOM manipulations, however, are something that can be a problem in Blazor - if something else happens and the component re-renders that selection state will be lost, which is why I'd suggest you consider doing this with JS like the examples in those pages above do. This is not something that Blazor has C# API for so it will always be done with JS.
Considering that, is there a problem with doing this with JS?
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/.