NumericTextBox - Default to blank/null

1 Answer 23 Views
NumericTextBox
Cody
Top achievements
Rank 2
Cody asked on 29 Mar 2022, 04:11 PM

I am attempting to utilize TelerikNumericTextBox, rather than TelerikTextBox, in order to take advantage of the Min, Max, Format, and other features available. However, upon making the switch I am no longer able to display a blank/null value in the textbox.

I don't see any mention of this in the TelerikNumericTextBox docs (https://docs.telerik.com/blazor-ui/components/numerictextbox/overview) and I assume this behavior is by design. Is there a way to allow a TelerikNumericTextBox to have a blank/null value? Perhaps a TelerikMaskedTextBox would work?

1 Answer, 1 is accepted

Sort by
1
Accepted
Marin Bratanov
Telerik team
answered on 29 Mar 2022, 07:38 PM

Hello Cody,

You can use a nullable number, here's a basic example: https://blazorrepl.telerik.com/QckdwNFZ370XdMPV03

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Cody
Top achievements
Rank 2
commented on 29 Mar 2022, 08:43 PM

Fantastic, Marin - Thank you!

One "?" is all I was missing ... great catch.

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