Class RadioButton
Represents the Radio Button UI element.
Inheritance
System.Object
RadioButton
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler
System.Web.UI.IPostBackDataHandler
System.Web.UI.IUrlResolutionService
Assembly: Syncfusion.EJ.Web.dll
public class RadioButton : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService
Constructors
Declaration
Properties
Gets or sets the value to make the radio button as active.
Declaration
public bool Checked { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets a value indicating this event gets fired before the radio button is going to changed its state.
Declaration
public string ClientSideOnBeforeChange { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when the radio button state is changed successfully.
Declaration
public string ClientSideOnChange { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when the radio button created successfully.
Declaration
public string ClientSideOnCreate { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating this event gets fired when the radio button destroyed successfully.
Declaration
public string ClientSideOnDestroy { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the CSS class to radio button for theme customization.
Declaration
public string CssClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating whether the control can respond to user interaction.
Declaration
public bool Enabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or set the value indicating radio button model value even after form post back/browser refresh sustains or not.
Declaration
public bool EnablePersistence { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Gets or sets a value indicating to align the radio button content in right to left direction.
Declaration
public bool EnableRTL { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public IDictionary<string, object> HtmlAttributes { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Gets or sets the idprefix value to be added before the current id of the radio button.
Declaration
public string IdPrefix { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the radio button model object of the radio button properties.
Declaration
public RadioButtonProperties Model { get; set; }
Property Value
Gets or sets a value indicating the name attribute of the radio button.
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets a value indicating the size of the radio button.
Declaration
public RadioButtonSize Size { get; set; }
Property Value
Text
Gets or sets the text content for radio button.
Declaration
public string Text { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets validation messages for radio button element.
Declaration
public List<KeyValue> ValidationMessage { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<KeyValue> |
|
Gets or sets validation messages for radio button element.
Declaration
public List<KeyValue> ValidationMessages { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<KeyValue> |
|
Gets or sets jQuery validation messages for radio button element.
Declaration
[JsonProperty("validationMessage")]
protected Dictionary<string, object> ValidationMsg { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Gets or sets jQuery validation messages for radio button element.
Declaration
[JsonProperty("validationMessages")]
protected Dictionary<string, object> ValidationMsgs { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Gets or sets validation rule for radio button element.
Declaration
public List<KeyValue> ValidationRule { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<KeyValue> |
|
Gets or sets jQuery validation rules for radio button element.
Declaration
[JsonProperty("validationRules")]
public Dictionary<string, object> ValidationRules { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Gets or sets the value atribute of the radio button.
Declaration
public string Value { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Specifies the dependent scripts.
Declaration
public List<string> DependentScripts()
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Specifies the the dependent files.
Declaration
public override List<string> GetDependentFiles()
Returns
Type |
Description |
System.Collections.Generic.List<System.String> |
|
Overrides
Restores view-state information from a previous page request.
Declaration
protected override void LoadViewState(object state)
Parameters
Type |
Name |
Description |
System.Object |
state |
|
Overrides
Modifying server controls before sending them to the client.
Declaration
protected override void OnPreRender(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
PostBackEventHandler(String, Dictionary<String, Object>)
Specifies the handler for server side events.
Declaration
public override void PostBackEventHandler(string EventName, Dictionary<string, object> args)
Parameters
Type |
Name |
Description |
System.String |
EventName |
|
System.Collections.Generic.Dictionary<System.String, System.Object> |
args |
|
Overrides
Renders the radio button instance.
Declaration
Returns
Type |
Description |
System.String |
|
Render(HtmlTextWriter)
Declaration
protected override void Render(HtmlTextWriter writer)
Parameters
Type |
Name |
Description |
System.Web.UI.HtmlTextWriter |
writer |
|
Overrides
Updates the server model with client model.
Declaration
public override void UpdateServerModel(Dictionary<string, object> ClientModel)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
ClientModel |
|
Overrides
Events
Specifies the handler for server side OnChange event.
Declaration
public event RadioButton.RadioButtonEventHandler Change
Event Type
Implements
System.Web.UI.INamingContainer
System.Web.UI.IPostBackEventHandler
System.Web.UI.IPostBackDataHandler
System.Web.UI.IUrlResolutionService