RadioGroupBuilder
Defines the fluent API for configuring the Kendo UI RadioGroup
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class RadioGroupBuilder : WidgetBuilderBase<RadioGroup, RadioGroupBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<RadioGroup, RadioGroupBuilder>RadioGroupBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadioGroupBuilder class.
Methods
Array of items to be rendered as radio buttons in the RadioGroup. If the array contains objects, their fields will be used for each radio button. If the array contains strings, those will be used as both value and label of the respective radio button.
public RadioGroupBuilder BindTo(IEnumerable<IInputGroupItem> values)
The action that configures the items.
Returns:Returns the current RadioGroupBuilder instance.
Array of items to be rendered as radio buttons in the RadioGroup. The strings in the array will be used as both value and label of the respective radio button.
public RadioGroupBuilder BindTo(string[] values)
The action that configures the items.
Returns:Returns the current RadioGroupBuilder instance.
Sets the enabled state of all radio buttons in the RadioGroup.
public RadioGroupBuilder Enabled(bool value)
The value for Enabled
Returns:Returns the current RadioGroupBuilder instance.
Configures the client-side events.
public RadioGroupBuilder Events(Action<RadioGroupEventBuilder> configurator)
The client events action.
Returns:Returns the current RadioGroupBuilder instance.
The name attribute to be used for the radio inputs. If omitted, the id of the wrapper element will be used.
public RadioGroupBuilder InputName(string value)
The value for InputName
Returns:Returns the current RadioGroupBuilder instance.
Sets a value controlling the size of the input.
public RadioGroupBuilder InputSize(ComponentSize value)
The value for InputSize
Returns:Returns the current RadioGroupBuilder instance.
Array of items to be rendered as radio buttons in the RadioGroup. If the array contains objects, their fields will be used for each radio button. If the array contains strings, those will be used as both value and label of the respective radio button.
public RadioGroupBuilder Items(Action<RadioGroupItemFactory> configurator)
The RadioGroupItemFactory for the items setting.
Returns:Returns the current instance of RadioGroupBuilder .
Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
public RadioGroupBuilder LabelPosition(RadioGroupLabelPosition value)
The value for LabelPosition
Returns:Returns the current RadioGroupBuilder instance.
Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
public RadioGroupBuilder LabelPosition(string value)
The value that configures the labelposition.
Returns:Returns the current RadioGroupBuilder instance.
Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
public RadioGroupBuilder Layout(RadioGroupLayout value)
The value for Layout
Returns:Returns the current RadioGroupBuilder instance.
Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
public RadioGroupBuilder Layout(string value)
The value that configures the layout.
Returns:Returns the current RadioGroupBuilder instance.
The selected (checked) radio button value. Will also be used as a RadioGroup widget value.
public RadioGroupBuilder Value(string value)
The value for Value
Returns:Returns the current RadioGroupBuilder instance.