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

Defines the fluent API for configuring DropDownTreeLabelSettings

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class DropDownTreeLabelSettingsBuilder

Inheritance: objectDropDownTreeLabelSettingsBuilder

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

Constructors

DropDownTreeLabelSettingsBuilder method.

C#
public DropDownTreeLabelSettingsBuilder(DropDownTreeLabelSettings container)
Parameters:containerDropDownTreeLabelSettings

Properties

Gets the settings being configured.

C#
protected DropDownTreeLabelSettings Container { get; }

Methods

Sets the inner HTML of the label.

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

The value for Content

Returns:

DropDownTreeLabelSettingsBuilder

Returns the current DropDownTreeLabelSettingsBuilder instance.

Sets the inner HTML of the label.

C#
public DropDownTreeLabelSettingsBuilder ContentHandler(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

DropDownTreeLabelSettingsBuilder

Returns the current DropDownTreeLabelSettingsBuilder instance.

Sets the inner HTML of the label.

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

The name of the JavaScript function that will be evaluated.

Returns:

DropDownTreeLabelSettingsBuilder

Returns the current DropDownTreeLabelSettingsBuilder instance.

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

C#
public DropDownTreeLabelSettingsBuilder Floating()
Returns:

DropDownTreeLabelSettingsBuilder

Returns the current DropDownTreeLabelSettingsBuilder instance.

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

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

The value for Floating

Returns:

DropDownTreeLabelSettingsBuilder

Returns the current DropDownTreeLabelSettingsBuilder instance.

Example:
C#
@(Html.Kendo().DropDownTree()
.Name("DropDownTree")
.Label(label=&gt;label
.Content("DropDownTree")
.Floating(true)
)
)