menu

ASP.NET MVC

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RadioButton

    Show / Hide Table of Contents

    Class RadioButton

    Represents the Radio Button UI element.

    Inheritance
    System.Object
    CommonControl
    RadioButton
    Implements
    System.Web.UI.INamingContainer
    System.Web.UI.IPostBackEventHandler
    System.Web.UI.IPostBackDataHandler
    System.Web.UI.IUrlResolutionService
    Inherited Members
    CommonControl.RaisePostBackEvent(String)
    CommonControl.OnInit(EventArgs)
    CommonControl.OnLoad(EventArgs)
    Namespace: Syncfusion.JavaScript.Web
    Assembly: Syncfusion.EJ.Web.dll
    Syntax
    public class RadioButton : CommonControl, INamingContainer, IPostBackEventHandler, IPostBackDataHandler, IUrlResolutionService

    Constructors

    RadioButton()

    Declaration
    public RadioButton()

    Properties

    Checked

    Gets or sets the value to make the radio button as active.

    Declaration
    public bool Checked { get; set; }
    Property Value
    Type Description
    System.Boolean

    ClientSideOnBeforeChange

    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

    ClientSideOnChange

    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

    ClientSideOnCreate

    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

    ClientSideOnDestroy

    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

    CssClass

    Gets or sets the CSS class to radio button for theme customization.

    Declaration
    public string CssClass { get; set; }
    Property Value
    Type Description
    System.String

    Enabled

    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

    EnablePersistence

    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

    EnableRTL

    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

    HtmlAttributes

    Declaration
    public IDictionary<string, object> HtmlAttributes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.Object>

    IdPrefix

    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

    Model

    Gets or sets the radio button model object of the radio button properties.

    Declaration
    public RadioButtonProperties Model { get; set; }
    Property Value
    Type Description
    RadioButtonProperties

    Name

    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

    Size

    Gets or sets a value indicating the size of the radio button.

    Declaration
    public RadioButtonSize Size { get; set; }
    Property Value
    Type Description
    RadioButtonSize

    Text

    Gets or sets the text content for radio button.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    ValidationMessage

    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>

    ValidationMessages

    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>

    ValidationMsg

    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>

    ValidationMsgs

    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>

    ValidationRule

    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>

    ValidationRules

    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>

    Value

    Gets or sets the value atribute of the radio button.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    DependentScripts()

    Specifies the dependent scripts.

    Declaration
    public List<string> DependentScripts()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>

    GetDependentFiles()

    Specifies the the dependent files.

    Declaration
    public override List<string> GetDependentFiles()
    Returns
    Type Description
    System.Collections.Generic.List<System.String>
    Overrides
    CommonControl.GetDependentFiles()

    LoadViewState(Object)

    Restores view-state information from a previous page request.

    Declaration
    protected override void LoadViewState(object state)
    Parameters
    Type Name Description
    System.Object state
    Overrides
    CommonControl.LoadViewState(Object)

    OnPreRender(EventArgs)

    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
    CommonControl.PostBackEventHandler(String, Dictionary<String, Object>)

    Render()

    Renders the radio button instance.

    Declaration
    public string Render()
    Returns
    Type Description
    System.String

    Render(HtmlTextWriter)

    Declaration
    protected override void Render(HtmlTextWriter writer)
    Parameters
    Type Name Description
    System.Web.UI.HtmlTextWriter writer
    Overrides
    CommonControl.Render(HtmlTextWriter)

    UpdateServerModel(Dictionary<String, Object>)

    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
    CommonControl.UpdateServerModel(Dictionary<String, Object>)

    Events

    Change

    Specifies the handler for server side OnChange event.

    Declaration
    public event RadioButton.RadioButtonEventHandler Change
    Event Type
    Type Description
    RadioButton.RadioButtonEventHandler

    Implements

    System.Web.UI.INamingContainer
    System.Web.UI.IPostBackEventHandler
    System.Web.UI.IPostBackDataHandler
    System.Web.UI.IUrlResolutionService
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved