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

How can I add a placeholder on the Blazor TextBox?

3 Answers 2622 Views
TextBox
This is a migrated thread and some comments may be shown as answers.
SL
Top achievements
Rank 1
Veteran
SL asked on 07 Jan 2020, 11:02 PM

You can do this with the standard input element:

<input type="text" class="form-control" id="counterAccountCode" placeholder="999-999-999-999-999-999, NONE if not applicable" bind="@Item.CounterAccountCode" />

 

Is there a way to do this with the Blazor TextBox or is this something that is still in the works?

 

Thanks.

3 Answers, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 08 Jan 2020, 07:54 AM

Hi,

The Label parameter does this, you can see it in action in the demos: https://demos.telerik.com/blazor-ui/textbox/overview.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
0
SL
Top achievements
Rank 1
Veteran
answered on 08 Jan 2020, 03:24 PM
Thank you Marin.
0
Hao
Top achievements
Rank 1
Iron
answered on 11 Nov 2022, 12:29 AM

hi Marin Bratanov,

Can we have placeholder template like this?

I may need to customize search box from Textbox because the buit-in search box in the Grid does not have click, how to get search text...

If possible, please give me some advices. Thanks

Dimo
Telerik team
commented on 15 Nov 2022, 07:36 AM

Hao, see the KB article Add icon to textbox.
Tags
TextBox
Asked by
SL
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
SL
Top achievements
Rank 1
Veteran
Hao
Top achievements
Rank 1
Iron
Share this question
or