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

Definition

Constructors

C#
public MaskedTextBox(ViewContext viewContext, IJavaScriptInitializer javaScriptInitializer, ViewDataDictionary viewData)
Parameters:viewContextViewContextjavaScriptInitializerIJavaScriptInitializerviewDataViewDataDictionary

Properties

C#
public bool ClearPromptChar { get; set; }
C#
public string Culture { get; set; }
C#
public bool Enabled { get; set; }
C#
public FillMode? FillMode { get; set; }

Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.

C#
public string InputMode { get; set; }
C#
public MaskedTextBoxLabelSettings Label { get; set; }
C#
public string Mask { get; set; }
C#
public PrefixOptionsSettings PrefixOptions { get; set; }
C#
public string PromptChar { get; set; }
C#
public Rounded? Rounded { get; set; }
C#
public Dictionary<string, object> Rules { get; }
C#
public ComponentSize? Size { get; set; }
C#
public SuffixOptionsSettings SuffixOptions { get; set; }
C#
public bool UnmaskOnPost { get; set; }
C#
public string Value { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Implements: IFormEditor.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)