RadioGroupBuilder
Defines the fluent API for configuring the Kendo RadioGroup for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class RadioGroupBuilder : WidgetBuilderBase<RadioGroup, RadioGroupBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<RadioGroup, RadioGroupBuilder>RadioGroupBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadioGroup 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(IList<IInputGroupItem> values)
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.
Sets the enabled state of all radio buttons in the RadioGroup.
public RadioGroupBuilder Enabled(bool value)
The value that configures the enabled.
Returns:Configures the client-side events.
public RadioGroupBuilder Events(Action<RadioGroupEventBuilder> configurator)
The client events action.
Returns: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 that configures the inputname.
Returns:Sets a value controlling the size of the input.
public RadioGroupBuilder InputSize(ComponentSize value)
The value that configures the inputsize.
Returns: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 action that configures the items.
Returns: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 that configures the labelposition.
Returns: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: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 that configures the layout.
Returns: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:The selected (checked) radio button value. Will also be used as a RadioGroup component value.
public RadioGroupBuilder Value(string value)
The value that configures the value.
Returns: