Class RadioButton
The RadioButton control allows you to choose an option to perform an action.
Implements
System.Web.IHtmlString
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class RadioButton : Control, IHtmlString
Constructors
RadioButton()
Initializes a new instance of the RadioButton class.
Declaration
public RadioButton()
RadioButton(String, RadioButtonProperties)
Initializes a new instance of the RadioButton class by the specified id and the radio button properties.
Declaration
public RadioButton(string id, RadioButtonProperties propModel)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
RadioButtonProperties | propModel |
Properties
Model
Instance of control properties class
Declaration
protected override object Model { get; }
Property Value
Type | Description |
---|---|
System.Object |
Overrides
PluginName
Gets the plugin name of the radio button element as 'ejRadioButton'.
Declaration
public override string PluginName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
RadioButtonModel
Gets or sets the radio button model object of the radio button properties.
Declaration
public RadioButtonProperties RadioButtonModel { get; set; }
Property Value
Type | Description |
---|---|
RadioButtonProperties |
TagName
Gets the tag name of the radio button element as 'input'.
Declaration
public override string TagName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
CreateContainer(String)
Represents an HTML-encoded string of the radio button control that should not be encoded again.
Declaration
public override HtmlString CreateContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
CreateUnObtrusiveContainer(String)
Represents an HTML-encoded string of the radio button control with directives.
Declaration
public override HtmlString CreateUnObtrusiveContainer(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Returns
Type | Description |
---|---|
System.Web.HtmlString |
Overrides
RenderControl(String)
Represents an HTML element of the radio button control.
Declaration
public override void RenderControl(string controlId)
Parameters
Type | Name | Description |
---|---|---|
System.String | controlId |
Overrides
Implements
System.Web.IHtmlString