We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Is it possible

Hi,
    We have a screen as shown in the attachment. The circled portion (hide Grouping) shows a textbox which can have values like                             ((1 OR 2) AND (3)). The numbers 1,2 and 3 are from the above rows of criteria, so if we have another rows in the screen the textbox will allow four  number 1,2,3 and 4.
                            Basically there are three validations that we want to accomplish using masked textbox.
1) restrict the numbers entered  which will be based on the number of rows entered above
2) should only allow "AND" and "OR"
3) parenthesis should be well formed.

Thanks,
Rajiv

Attachment: Screen_Final__maskedText_d7add697.zip

1 Reply

HP Harikrishnan P Syncfusion Team June 17, 2014 04:33 PM UTC

Hi Rajiv,

Thanks for your interest in Syncfusion products.

We have tried to achieve your requirement by specifying the value for “mask” property as shown below,

            $("#maskedit").ejMaskEdit(

                            {

                                width: "275px",

                                name: "mask",

                                inputMode: ej.inputMode.Text,

                           //'C' specifies Custom character.

                                mask: "((C OR C) AND (C))",

                                customChar: custom

                            });

 

Now in the maskedit textbox, numbers (based on particular criteria) will only be allowed in the place of ‘C’ (custom character). But unfortunately we are unable to achieve this requirement successfully.

On specifying the “mask” value as shown above, the characters ‘A’ and ‘N’ are ignored by the maskedit textbox. It considers as “alphabetic” and “numeric” values will fill these places.

We have confirmed this (unable to specify characters ‘A’ and ‘N’ in the mask value) as bug and we have logged a defect report on this. Fix for this issue will be available in any of our upcoming service pack releases. Usually our service pack release will be rolled out at the end of every month. We will update this thread once this issue is fixed.

Please let us know if you have further queries

Regards,

HariKrishnan.

Loader.
Up arrow icon