Approved
Last Updated: 09 May 2019 07:25 by ADMIN
Toine
Created on: 02 May 2019 07:51
Category: MaskedTextBox
Type: Feature Request
0
RegEx Mask & MaskAutoComplete

We are heavily relying on the use of RegEx masks and the MaskAutoComplete functionality in the Telerik Silverlight components. Currently we are completly rebuilding out application with Telerik Angular 2+ so we are missing this functionality.

For instance what we are trying to achieve is:

- force First letter upper case in lastname after every space in the name. (Silverlight --> Mask="([A-Z]\.)+" MaskType="RegEx" MaskAutoComplete="Optimistic")

- initials all uppercase and automaticly place a . after every letter (Silverlight --> Mask="([A-Z][a-z]+)((\s|\-)[A-Z][a-z]+)*" MaskType="RegEx" MaskAutoComplete="Optimistic")

 

If there is another way to achieve this in Angular 2+ with the current components that is also fine but I cannot find a way in the documentation.

 

1 comment
ADMIN
Svetlin
Posted on: 09 May 2019 07:25
Hi Toine,

Thank you for the logged feature request item.

Indeed, at the moment Kendo UI for Angular has a limited support for masked inputs. Currently we can specify a RegEx via the rules input property of a MaskedTextBox component as demonstrated in the following article:
https://www.telerik.com/kendo-angular-ui/components/inputs/maskedtextbox/masks/#toc-mask-rules

Check the following example demonstrating how a capital Latin letter can be enforced for the first letter of the second word:
https://stackblitz.com/edit/angular-grxtmn?file=app/app.component.ts

However, at the moment there does not seem to be a way that allows to auto-fill the value with some characters or transform the value. 

Regards,
Svetlin
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.