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

TelerikComboBox

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
khashayar
Top achievements
Rank 1
Veteran
khashayar asked on 15 Dec 2019, 11:56 AM

Hello im using TelerikComboBox and i suddenly ran into a problem.
i have created a property and i made an oject from it then since id field is required and my Value . after initialization it is filled with alot of zeros as soon as it get clicked goes away 

how can i clear the first zeros and show placeholder ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 15 Dec 2019, 01:13 PM

Hello,

The placeholder shows when the Value of the combo box is null or an empty string (see the explanations about the Placeholder feature about halfway down the page): https://docs.telerik.com/blazor-ui/components/combobox/overview.

Most data types do not default to a null value - for example, numbers default to 0. If you want to see the placeholder initially, you must make sure that the Value of the combo box is null or an empty string.

 

Regards,
Marin Bratanov
Progress Telerik

 UI for Blazor
Tags
General Discussions
Asked by
khashayar
Top achievements
Rank 1
Veteran
Answers by
Marin Bratanov
Telerik team
Share this question
or