RadioButton
Class
Kendo UI RadioButton component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
C#
public class RadioButton : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseRadioButton
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadioButton class.
C#
public RadioButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
If set to false, the RadioButton will be disabled and will not allow the user to change its checked state.
C#
public bool? Enabled { get; set; }
Determines whether the radio label content should be rendered as an HTML string or it should be encoded.
C#
public bool? Encoded { get; set; }
Sets a value controlling the size of the component.
C#
public ComponentSize? Size { get; set; }
Methods
C#
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
C#
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
C#
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: