WebMaskEditor1.DataMode = Infragistics.Web.UI.EditorControls.MaskDataMode.RawTextWithLiterals
WebMaskEditor™ allows you to specify if input mask literals should be included with the value property. You can configure this behavior by simply setting the control’s DataMode property This behavior can be configured according to the following variations:
Whether or not the literal characters (non-editable part of mask such as slashes or dashes in date values) should be included.
Whether or not the required empty mask positions should be included.
Whether or not the optional empty mask positions should be included.
You can set the DataMode property to one of the members in the MaskDataMode enumeration, either by using the Microsoft® Visual Studio® Property Window or by using the following code:
In Visual Basic:
WebMaskEditor1.DataMode = Infragistics.Web.UI.EditorControls.MaskDataMode.RawTextWithLiterals
In C#:
WebMaskEditor1.DataMode = Infragistics.Web.UI.EditorControls.MaskDataMode.RawTextWithLiterals;