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

Defines the fluent API for configuring the NumericTextBoxLabelSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class NumericTextBoxLabelSettingsBuilder

Inheritance: objectNumericTextBoxLabelSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public NumericTextBoxLabelSettingsBuilder(NumericTextBoxLabelSettings settings)
Parameters:settingsNumericTextBoxLabelSettings

The NumericTextBoxLabelSettings

Methods

Sets the inner HTML of the label.

C#
public NumericTextBoxLabelSettingsBuilder Content(string value)
Parameters:valuestring

The value that configures the label content.

Returns:

NumericTextBoxLabelSettingsBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Label(l => l.Content("Age"))
)

Sets the inner HTML of the label.

C#
public NumericTextBoxLabelSettingsBuilder ContentHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will return the label content.

Returns:

NumericTextBoxLabelSettingsBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Label(l => l.ContentHandler("getContentLabel"))
)
<script>
function getContentLabel() {
return "Age";
}
</script>

If the option is enabled, the component will be wrapped in a container that will allow the floating label functionality.

C#
public NumericTextBoxLabelSettingsBuilder Floating(bool value)
Parameters:valuebool

The value that configures the floating label.

Returns:

NumericTextBoxLabelSettingsBuilder

Example:
C#
@(Html.Kendo().NumericTextBox()
.Name("numericTextBox")
.Label(l => l.Content("Age").Floating(true))
)