Kendo.Mvc.UI.Fluent.RadioGroupBuilder
Defines the fluent API for configuring the Kendo UI RadioGroup
Methods
Layout(System.String)
Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
Parameters
value System.String
The value that configures the layout.
LabelPosition(System.String)
Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
Parameters
value System.String
The value that configures the labelposition.
BindTo(System.String[])
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.
Parameters
configurator System.String[]
The action that configures the items.
BindTo(System.Collections.Generic.IEnumerable<Kendo.Mvc.UI.IInputGroupItem>)
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.
Parameters
configurator System.Collections.Generic.IEnumerable<Kendo.Mvc.UI.IInputGroupItem>
The action that configures the items.
Enabled(System.Boolean)
Sets the enabled state of all radio buttons in the RadioGroup.
Parameters
value System.Boolean
The value for Enabled
InputName(System.String)
The name attribute to be used for the radio inputs. If omitted, the id of the wrapper element will be used.
Parameters
value System.String
The value for InputName
Items(System.Action<Kendo.Mvc.UI.Fluent.RadioGroupItemFactory>)
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.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.RadioGroupItemFactory>
The configurator for the items setting.
Value(System.String)
The selected (checked) radio button value. Will also be used as a RadioGroup widget value.
Parameters
value System.String
The value for Value
Layout(Kendo.Mvc.UI.RadioGroupLayout)
Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
Parameters
value Kendo.Mvc.UI.RadioGroupLayout
The value for Layout
LabelPosition(Kendo.Mvc.UI.RadioGroupLabelPosition)
Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
Parameters
value Kendo.Mvc.UI.RadioGroupLabelPosition
The value for LabelPosition
Events(System.Action<Kendo.Mvc.UI.Fluent.RadioGroupEventBuilder>)
Configures the client-side events.
Parameters
configurator System.Action<Kendo.Mvc.UI.Fluent.RadioGroupEventBuilder>
The client events action.
Example (ASPX)
@(Html.Kendo().RadioGroup()
.Name("RadioGroup")
.Events(events => events
.Change("onChange")
)
)