New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Class holding settings which are used to determine the masked input behavior

Definition

Constructors

Constructur of the MaskedTextBoxSetting

C#
public MaskedTextBoxSetting()

Fields

C#
protected MaskPartCollection DisplayMaskParts
C#
protected MaskPartCollection MaskParts

Properties

Gets or sets a value which determines if empty mask parts are allowed.

C#
[ClientControlProperty]
public bool AllowEmptyEnumerations { get; set; }
Property Value:

A value which determines if empty mask parts are allowed.

Gets or sets the display mask which is shown when the MaskedTextBoxSetting is not focused.

C#
public string DisplayMask { get; set; }
Property Value:

The display mask which is shown when the MaskedTextBoxSetting is not focused.

Gets or sets the prompt character used in the display mask.

C#
[ClientControlProperty]
public virtual string DisplayPromptChar { get; set; }
Property Value:

The prompt character used in the display mask.

Gets or sets if the prompt will be hidden when RadMaskedTextBox is blurred.

C#
[ClientControlProperty]
public bool HideOnBlur { get; set; }
Property Value:

The hide on blur.

Gets or sets the time, in milliseconds, the InvalidStyle should be displayd. Must be a positive integer.

C#
public virtual int InvalidStyleDuration { get; set; }
Property Value:

The Time, in milliseconds, the InvalidStyle should be displayd. Must be a positive integer.

Gets or sets the MaskedTextBoxSetting mask.

C#
public string Mask { get; set; }
Property Value:

The MaskedTextBoxSetting mask.

Gets or sets alignment of numeric ranges.

C#
public NumericRangeAlign NumericRangeAlign { get; set; }
Property Value:

The alignment of numeric ranges.

Gets or sets the prompt char.

C#
[ClientControlProperty]
public virtual string PromptChar { get; set; }
Property Value:

The prompt char.

C#
public bool RequireCompleteText { get; set; }

Gets or sets if the numberic ranges will be rounded.

C#
[ClientControlProperty]
public bool RoundNumericRanges { get; set; }
Property Value:

Determines if the numberic ranges will be rounded.

Gets or sets if the values of numeric range parts of the mask to have a fixed width.

C#
public bool ZeroPadNumericRanges { get; set; }
Property Value:

Enforces the values of numeric range parts of the mask to have a fixed width.

Methods

Validates the specified TextBox control with supplied context.

C#
public override void Validate(TextBox input, object context)
Parameters:inputTextBox

The TextBox control.

contextobject

The context.

Overrides: InputSetting.Validate(TextBox, object)

Validates the specified TextBox control.

C#
public override void Validate(TextBox input)
Parameters:inputTextBox

The TextBox control.

Overrides: InputSetting.Validate(TextBox)