RadMaskedInput ingores RegEx

1 Answer 93 Views
MaskedInput
JIG
Top achievements
Rank 1
JIG asked on 29 Sep 2021, 10:45 AM

Hello,

I'm using the RadMaskedInput for Xamarin but it seems to ignore the RegEx completely.

I even used the example RegEx from the docs (the date validation) but even that one always returns true even when it's obviously an incorrect value.

What am I missing here?

 

Kind regards

 

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 04 Oct 2021, 07:17 AM

Hello Jimmy,

You've come across a known issue in MaskedInput with RegEx Type, here is the bug report in our public feedback portal:

RegEx mask doesn't work

As a workaround, please use Text MaskType instead: Mask Tokens.

I am sorry for any inconvenience caused.

Regards,
Yana
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

JIG
Top achievements
Rank 1
commented on 04 Oct 2021, 07:29 AM

Ok so it doesn't work...

the suggested "workaround" is not really an option I think as i need somthing like this:

^[0-9]{1,10}\.[0-9]{2}$

1-10 digits between 0 and 9, a decimal point and then 2 digits between 0 and 9.
Can this be achieved with the "Text" MaskType?

 

Kind regards

Yana
Telerik team
commented on 06 Oct 2021, 10:37 AM

Only the part with 1-10 digits between 0 and 9 cannot be achieved with "Text" MaskType as the Text MaskType requires  strict number of the expected symbols.  I understand that RegEx is far more powerful and I am so sorry for the current inconvenience caused with this issue. I've updated the priority of the bug as per your report and hopefully we'll manage to resolve it soon.
JIG
Top achievements
Rank 1
commented on 06 Oct 2021, 10:41 AM

Ok, thank you.

In the meantime i created my own control with regex validation. I'll follow the progress on the Telerik control to switch in the future.

Thank you and kind regards

Tags
MaskedInput
Asked by
JIG
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or