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

Defines the fluent API for configuring RadioGroupItem

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class RadioGroupItemBuilder

Inheritance: objectRadioGroupItemBuilder

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

Constructors

RadioGroupItemBuilder method.

C#
public RadioGroupItemBuilder(RadioGroupItem container)
Parameters:containerRadioGroupItem

Properties

Gets the settings being configured.

C#
protected RadioGroupItem Container { get; }

Methods

Custom class that would be set on the respective k-radio-item element.

C#
public RadioGroupItemBuilder CssClass(string value)
Parameters:valuestring

The value for CssClass

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.

Defines whether the radio button is enabled or not. By default all radio buttons are enabled.

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

The value for Enabled

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.

Determines whether the radio button label content should be rendered as an HTML string or it should be encoded.

C#
public RadioGroupItemBuilder Encoded(bool value)
Parameters:valuebool

The value for Encoded

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.

Collection of key-value pairs that would be used to generate the attributes attached to each k-radio-item element.

C#
public RadioGroupItemBuilder HtmlAttributes(IDictionary<string, object> value)
Parameters:valueIDictionary<string, object>

The value for HtmlAttributes

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.

Collection of key-value pairs that would be used to generate the attributes attached to each k-radio-item element.

C#
public RadioGroupItemBuilder HtmlAttributes(object value)
Parameters:valueobject

The value for HtmlAttributes

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.

Specifies the label content for the radio button.

C#
public RadioGroupItemBuilder Label(string value)
Parameters:valuestring

The value for Label

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.

Specifies the value for the radio button.

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

The value for Value

Returns:

RadioGroupItemBuilder

Returns the current RadioGroupItemBuilder instance.