RadioGroup
Kendo UI RadioGroup component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class RadioGroup : WidgetBase, IHtmlAttributesContainer, IFormEditor
Inheritance: objectWidgetBaseRadioGroup
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadioGroup class.
Properties
Sets the enabled state of all radio buttons in the RadioGroup.
public bool? Enabled { get; set; }
The name attribute to be used for the radio inputs. If omitted, the id of the wrapper element will be used.
public string InputName { get; set; }
Sets a value controlling the size of the input.
public ComponentSize? InputSize { get; set; }
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 List<RadioGroupItem> Items { get; set; }
Specifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
public RadioGroupLabelPosition? LabelPosition { get; set; }
Specifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
public RadioGroupLayout? Layout { get; set; }
Methods
Serializes the component settings to a dictionary.
public override IDictionary<string, object> Serialize()
A dictionary of settings.
Overrides:
Implements:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML.
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: