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

How can I add an icon to a TextBox?

1 Answer 688 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 2
Kelly asked on 12 Apr 2020, 03:35 PM

I would like to add a icon in the TextBox, like a search icon, or email or phone. (see attached file) Is this possible?

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 13 Apr 2020, 07:02 AM

Hi Kelly,

I made the following article that showcases a couple of approaches to do that: https://docs.telerik.com/blazor-ui/knowledge-base/textbox-add-icon

 

Regards,
Marin Bratanov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Ted
Top achievements
Rank 1
Iron
Iron
commented on 07 Jul 2022, 04:31 PM | edited

The above article does not appear to work anymore with the current release of Telerik Blazor (v3.3).

It would be nice if the team could add "Icon" and "IconClass" parameters to the TelerikTextBox control to abstract the implementation details for this, like many of the other Blazor controls already have.

Dimo
Telerik team
commented on 12 Jul 2022, 09:09 AM

Hi all,

The knowledge base article about textbox with icon is now up-to-date and works with the latest version. Ted, thanks for the tip!

Tags
TextBox
Asked by
Kelly
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or