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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Is it possible

Thread ID:





116838 Jun 16,2014 02:17 PM UTC Jun 17,2014 04:33 PM UTC ASP.NET MVC 1
Tags: MaskEditTextbox
Rajiv Kumar
Asked On June 16, 2014 02:17 PM UTC

    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.


Attachment: Screen_Final__maskedText_d7add697.zip

Harikrishnan P [Syncfusion]
Replied On 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,



                                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




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon