RadioGroup
Kendo UI RadioGroup component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class RadioGroup : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseRadioGroup
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadioGroup class.
public RadioGroup(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
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
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The writer.
Overrides: