NumericTextBox<T>
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class NumericTextBox<T> : WidgetBase, IScriptableComponent, IFormEditor, IInputComponent<T>, IWidget, IHtmlAttributesContainer where T : struct
Inheritance: objectWidgetBaseNumericTextBox<T>
Implements:
Inherited Members
Constructors
public NumericTextBox(ViewContext viewContext, IJavaScriptInitializer javaScriptInitializer, ViewDataDictionary viewData)
Properties
If this property is enabled and you have configured min and/or max values, and the user enters a value that falls out of that range, the value will automatically be set to either the minimum or maximum allowed value.
public bool? AutoAdjust { get; set; }
public string DecreaseButtonTitle { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
public string IncreaseButtonTitle { 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.
public string InputMode { get; set; }
public NumericTextBoxLabelSettings Label { get; set; }
Max
T?
public T? Max { get; set; }
Min
T?
public T? Min { get; set; }
public string Placeholder { get; set; }
public PrefixOptionsSettings PrefixOptions { get; set; }
public bool? RestrictDecimals { get; set; }
When set to true, the text of the input will be selected after the widget is focused.
public bool? SelectOnFocus { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
Step
T?
public T? Step { get; set; }
public SuffixOptionsSettings SuffixOptions { get; set; }
Value
T?
public T? Value { get; set; }
Implements:
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
public override void VerifySettings()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: