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.
Unfortunately, activation email could not send to your email. Please try again.

Is it possible

Thread ID:

Created:

Updated:

Platform:

Replies:

116838 Jun 16,2014 10:17 AM Jun 17,2014 12:33 PM ASP.NET MVC 1
loading
Tags: MaskEditTextbox
Rajiv Kumar
Asked On June 16, 2014 10:17 AM

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

Harikrishnan P [Syncfusion]
Replied On June 17, 2014 12:33 PM

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.

CONFIRMATION

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.

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.

;