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

How to customize user defined masks?

My syncfusion version is 4.4.0.51

I am developing a windows form.

I am trying to use "MaskEdit" as the cell type for some cells. The cells should only accepts user input characters “ABC~|&()” that make up logic equations. Is there a way to define a mask myself?

Thank you.


1 Reply

NA Nisha Arockiya A Syncfusion Team October 1, 2008 12:58 PM UTC

Hi Fan,

Thanks for your interest in Syncfusion Products.

The problem with trying to use a Mask cell to handle this kind of requirement is that it is hard to make the mask flexible with respect to length and order of characters.

A simpler way to handle this requirement would be to use the CurrentCellValidateString event. There, you are passed in the proposed string and you can cancel the change if the string is not valid for any reason. Here is a minimal sample showing the use of this event.

http://www.syncfusion.com/support/user/uploads/GC_KeyVerification_4061ba37.zip

Please let us know if this event will not serve your needs.

Regards,
Nisha


Loader.
Live Chat Icon For mobile
Up arrow icon