Using of non latin characters in mask of wijmo InputMask

Posted by: vadim on 1 October 2024, 10:50 am EST

    • Post Options:
    • Link

    Posted 1 October 2024, 10:50 am EST

    Hi Team,

    I’ve created editor form component where one of the field is wijmo InputMask control with a mask like ‘00A000’ to input values where third position may be digital, latin or cyrillic character, but the mask does not allow the use of Cyrillic characters

    Is there a solution to this problem?

  • Posted 3 October 2024, 8:41 am EST

    Hi Vadim,

    This is directly not possible. For this you would have to customize the InputMask control a bit and overwrite the _isCharValid function of the MaskProvider class and add another condition for Z which is for DBCS character in the original logic, you may also add Digits and it should work as expected.

    Please refer to the attached sample: https://stackblitz.com/edit/js-fanede?file=index.js

    I hope this helps!

  • Posted 3 October 2024, 12:02 pm EST

    Hi Akshay,

    The idea is clear. It remains to understand how to apply all this to an InputMask wrapped in a wj-flex-grid-cell-template. I’ll try to figure it out.

    Thanks a lot

  • Posted 4 October 2024, 2:06 am EST

    Hi Vadim,

    Sure, I’m glad to hear the issue is resolved! If you need any assistance with using flex grid with an input mask editor, I’ve created a sample application that does something similar Please refer to the link below:

    https://stackblitz.com/edit/js-x9gh6g?file=index.js

    Additionally, you may also refer to the following Demo available on our website: https://developer.mescius.com/wijmo/demos/Grid/Editing/CustomEditors/purejs

    I hope it helps!

    Regards,

    Akshay

  • Posted 5 October 2024, 9:30 am EST

    Hi Akshay,

    I’ve studied your flexgrid example. The solution turned out to be quite simple and very useful for me. You’ve saved me a lot of time. I am very grateful for your help!

    Regards,

    Vadim

  • Posted 7 October 2024, 12:25 am EST

    Hi Vadim,

    I am happy to know the issue is resolved!

    Regards,

    Akshay

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels