Telerik Forums
UI for Blazor Forum
1 answer
140 views

When using "Placeholder" prop in MaskedTextBox resulting html element has both attributes - placeholder and aria-placeholder.
Some a11y testing tools (SortSite) consider that a violation because it creates ambiguity.
Is there work around ?  Textbox control for example doesn't do that.

Here is the sample code to replicate the issue - https://blazorrepl.telerik.com/cquvvSvB57YqxQRz33

Hristian Stefanov
Telerik team
 answered on 15 Jan 2026
1 answer
164 views
How do none of your documentation examples show how to ensure a valid email address is entered?  How do I enforce the a@aaa.aa format?
Dimo
Telerik team
 answered on 14 Jul 2025
1 answer
134 views

Hi, my goal is validate a form and focus telerik widget with validation errors.  

 

Now i can find the element search for class "k-invalid" but how to get the widget reference so i can call the FocusAsync() method?

 

Thanks

1 answer
167 views

Hi,

I use TelerikMaskedTextBox with IncludeLiterals, but the value is always padded with spaces to the mask's length. Is there a way to trim the value? For example, if I have a partially filled phone mask, I can't determine whether it is valid based on the length. Also, when stored in the database, having those spaces can be an issue when used by another method in the application.

Thanks,

Tsvetomir
Telerik team
 answered on 05 Jul 2024
1 answer
193 views

We are using a masked textbox to allow users to enter a US phone number, formatted as 000-000-0000, so all digits are required. The user is collecting a phone number from someone on a telephone call. Most of the time, the caller provides their phone number area code first, then they give the 7 digit number, so that works great. But sometimes, the caller doesn't think about giving their area code. In that case, the number looks like:

555-555-5, which is not right. Then we have to ask the caller for their area code. If the user clicks before the first 5, and starts typing, they overwrite the existing numbers. We would like it to insert the area code and push everything else to the right. If there are already 10 digits and we just want to change a number, then overwrite. 

Does that make sense? Is that something that can be done?

Svetoslav Dimitrov
Telerik team
 answered on 06 Oct 2023
0 answers
152 views

**Question Removed Due to Finding Answer***
Cannot delete question which is a shame.

ReverseBLT
Top achievements
Rank 1
Iron
 updated question on 13 Jun 2023
2 answers
919 views

Hello,

How do I force user input to uppercase?

I have this mask:  Mask="00-LLLA00000000"

I want the LLL to always be uppercase.

When A is an alpha character, I want it to be uppercase as well.

Thanks,

TFISHER

Brett
Top achievements
Rank 1
Iron
 updated answer on 02 May 2023
1 answer
139 views
I want to ignore _ only numbers are allowed.
Peter
Top achievements
Rank 1
Iron
Iron
 answered on 19 Jul 2022
0 answers
136 views
I was thinking of using the MaskedText component to provide the user with more information on how to complete a form and also to validate the values entered along with regular expressions in annotations.

The component works well when the format of the mask is inflexible but unfortunately most of the values that are entered in a form are not. It works but it's not very useful.

My question is the following: is there a way to have rules that make the format of the mask more flexible (without falling in js)?

The full set of alternatives that regular expressions have may be too much, but at least a subset would be convenient.

Do you plan to extend the rules to be more flexible?

Greetings.
Ludwig.
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
 updated question on 04 May 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?