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.
Syncfusion Feedback

How to customize user defined masks?

Thread ID:

Created:

Updated:

Platform:

Replies:

76904 Sep 29,2008 10:05 PM UTC Oct 1,2008 12:58 PM UTC Windows Forms 1
loading
Tags: GridControl
Fan Zhang
Asked On September 29, 2008 10:05 PM UTC

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.


Nisha Arockiya A [Syncfusion]
Replied On 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


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.

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

;