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

Defines the fluent API for configuring the TextBoxLabelSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Type Parameters:

T

Syntax:

C#
public class TextBoxLabelSettingsBuilder<T>

Inheritance: objectTextBoxLabelSettingsBuilder<T>

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

Constructors

Initialize the TextBoxLabelSettingsBuilder

C#
public TextBoxLabelSettingsBuilder(TextBoxLabelSettings settings)
Parameters:settingsTextBoxLabelSettings

The TextBoxLabelSettings

Methods

Sets the inner HTML of the label.

C#
public TextBoxLabelSettingsBuilder<T> Content(string value)
Parameters:valuestring

The value that configures the content.

Returns:

TextBoxLabelSettingsBuilder<T>

Example:
C#
@( Html.Kendo().TextBox()
.Name("TextBox")
.Label(l =&gt; l.Content("TextBoxContent"))
)

Sets the inner HTML of the label.

C#
public TextBoxLabelSettingsBuilder<T> ContentHandler(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated..

Returns:

TextBoxLabelSettingsBuilder<T>

Example:
C#
@( Html.Kendo().TextBox()
.Name("TextBox")
.Label(l =&gt; l.ContentHandler("textBoxContentHandler"))
)

If set to true, the widget will be wrapped in a container that will allow the floating label functionality.

C#
public TextBoxLabelSettingsBuilder<T> Floating(bool value)
Parameters:valuebool

The value that configures the floating.

Returns:

TextBoxLabelSettingsBuilder<T>

Example:
C#
@( Html.Kendo().TextBox()
.Name("TextBox")
.Label(l =&gt; l.Floating(true))
)