TelerikMaskedTextBox
The Telerik Masked TextBox class.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikMaskedTextBox : TextBoxBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentTelerikInputBase<string>TextBoxBaseTelerikMaskedTextBox...
Implements:
Inherited Members
Constructors
public TelerikMaskedTextBox()
Properties
Enables WebMCP tool registration for this MaskedTextBox.
When true, MaskedTextBox operations are exposed as tools discoverable by AI models through the browser.
Default value is false.
[Parameter]
public bool EnableWebMcpTools { get; set; }
Specifies the fill mode of the MaskedTextBox.
[Parameter]
public override string FillMode { get; set; }
Overrides:
Specifies whether to include literals in the raw value. Defaults to false.
[Parameter]
public bool IncludeLiterals { get; set; }
Represents the current mask. If no mask is set, the component behaves as a standard type="text" input.
[Parameter]
public string Mask { get; set; }
The content of the MaskedTextBox prefix.
[Parameter]
public RenderFragment MaskedTextBoxPrefixTemplate { get; set; }
Provides configuration for WebMCP tools, such as a Name to distinguish this MaskedTextBox from others on the same page.
[Parameter]
public RenderFragment MaskedTextBoxSettings { get; set; }
The content of the MaskedTextBox suffix.
[Parameter]
public RenderFragment MaskedTextBoxSuffixTemplate { get; set; }
Specifies whether the mask should be shown on focus for empty value.
[Parameter]
public bool MaskOnFocus { get; set; }
Represents a prompt character for the masked value. Defaults to "_".
[Parameter]
public char Prompt { get; set; }
Indicates a character which represents an empty position in the raw value. Defaults to " ".
[Parameter]
public char? PromptPlaceholder { get; set; }
Specifies the roundness of the MaskedTextBox.
[Parameter]
public override string Rounded { get; set; }
Overrides:
Specifies whether the clear button should be displayed.
[Parameter]
public bool ShowClearButton { get; set; }
Defines whether the prefix separator should be shown. The default value is true.
[Parameter]
public bool ShowPrefixSeparator { get; set; }
Defines whether the suffix separator should be shown. The default value is true.
[Parameter]
public bool ShowSuffixSeparator { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override Task SetParametersAsync(ParameterView parameters)
Overrides: