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

Defines the fluent API for configuring the SegmentedControlItem settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class SegmentedControlItemBuilder

Inheritance: objectSegmentedControlItemBuilder

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

Constructors

C#
public SegmentedControlItemBuilder(SegmentedControlItem settings)
Parameters:settingsSegmentedControlItem

The SegmentedControlItem

Methods

Configures whether an individual button can be enabled or disabled.

C#
public SegmentedControlItemBuilder Enabled(bool value)
Parameters:valuebool

The value that configures the enabled.

Returns:

SegmentedControlItemBuilder

Defines the name for an existing icon in a Kendo UI theme or SVG content. The icon is rendered inside the button.

C#
public SegmentedControlItemBuilder Icon(string value)
Parameters:valuestring

The value that configures the icon.

Returns:

SegmentedControlItemBuilder

If set, value will be appended to the icon's element class attribute.

C#
public SegmentedControlItemBuilder IconClass(string value)
Parameters:valuestring

The value that configures the iconclass.

Returns:

SegmentedControlItemBuilder

If set, the text will be rendered as the button label.

C#
public SegmentedControlItemBuilder Text(string value)
Parameters:valuestring

The value that configures the text.

Returns:

SegmentedControlItemBuilder

Specifies the value that will act as an identifier for the button. Will be supplemented as a data-value attribute.

C#
public SegmentedControlItemBuilder Value(string value)
Parameters:valuestring

The value that configures the value.

Returns:

SegmentedControlItemBuilder