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

Literal characters in MaskEdit cell

Is there a way to specify that the literal characters in a mask shouldn''t be dislayed if the cell has no value? Thanks as always!

1 Reply

AD Administrator Syncfusion Team June 28, 2004 01:49 PM UTC

One way you can try do this would be to handle PrepareviewStyleInfo. If e.Style>CellType is MaskEdit and e.Style.Text is empty, you could set e.Style.MaskEdit.Mask = "". (Or you could change e.Style.CellType = "TextBox" or something.) You also may want to check if the e.RowIndex and e.ColIndex point to teh current cell or not. In that case, you would not want to make any changes so the user would see the mask when it is the current cell.

Live Chat Icon For mobile
Up arrow icon