ASP.NET Core - EJ2

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RadioButtonBuilder - ASP.NETCore-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RadioButtonBuilder

    Inheritance
    System.Object
    ControlBuilder
    RadioButtonBuilder
    Inherited Members
    ControlBuilder.Context
    Namespace: Syncfusion.EJ2.Buttons
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class RadioButtonBuilder : ControlBuilder

    Constructors

    RadioButtonBuilder()

    Declaration
    public RadioButtonBuilder()

    RadioButtonBuilder(RadioButton)

    Declaration
    public RadioButtonBuilder(RadioButton model)
    Parameters
    Type Name Description
    RadioButton model

    Fields

    model

    Declaration
    public RadioButton model
    Field Value
    Type Description
    RadioButton

    Properties

    HtmlAttr

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

    ID

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

    Output

    Declaration
    public override TextWriter Output { get; set; }
    Property Value
    Type Description
    System.IO.TextWriter
    Overrides
    ControlBuilder.Output

    Methods

    Change(String)

    Event trigger when the RadioButton state has been changed by user interaction.

    Declaration
    public RadioButtonBuilder Change(string change)
    Parameters
    Type Name Description
    System.String change
    Returns
    Type Description
    RadioButtonBuilder

    Checked(Boolean)

    Declaration
    public RadioButtonBuilder Checked(bool check = true)
    Parameters
    Type Name Description
    System.Boolean check
    Returns
    Type Description
    RadioButtonBuilder

    Created(String)

    Triggers once the component rendering is completed.

    Declaration
    public RadioButtonBuilder Created(string created)
    Parameters
    Type Name Description
    System.String created
    Returns
    Type Description
    RadioButtonBuilder

    CssClass(String)

    Defines class/multiple classes separated by a space in the RadioButton element. You can add custom styles to the RadioButton by using this property.

    Declaration
    public RadioButtonBuilder CssClass(string cssClass)
    Parameters
    Type Name Description
    System.String cssClass
    Returns
    Type Description
    RadioButtonBuilder

    Disabled(Boolean)

    Specifies a value that indicates whether the RadioButton is disabled or not. When set to true, the RadioButton will be in disabled state.

    Declaration
    public RadioButtonBuilder Disabled(bool disabled = true)
    Parameters
    Type Name Description
    System.Boolean disabled
    Returns
    Type Description
    RadioButtonBuilder

    EnableHtmlSanitizer(Boolean)

    Defines whether to allow the cross-scripting site or not.

    Declaration
    public RadioButtonBuilder EnableHtmlSanitizer(bool enableHtmlSanitizer = true)
    Parameters
    Type Name Description
    System.Boolean enableHtmlSanitizer
    Returns
    Type Description
    RadioButtonBuilder

    EnablePersistence(Boolean)

    Enable or disable persisting component's state between page reloads.

    Declaration
    public RadioButtonBuilder EnablePersistence(bool enablePersistence = true)
    Parameters
    Type Name Description
    System.Boolean enablePersistence
    Returns
    Type Description
    RadioButtonBuilder

    EnableRtl(Boolean)

    Enable or disable rendering component in right to left direction.

    Declaration
    public RadioButtonBuilder EnableRtl(bool enableRtl = true)
    Parameters
    Type Name Description
    System.Boolean enableRtl
    Returns
    Type Description
    RadioButtonBuilder

    HtmlAttributes(Object)

    Allows additional HTML attributes such as title, name, etc., and accepts n number of attributes in a key-value pair format.

    Declaration
    public RadioButtonBuilder HtmlAttributes(object htmlAttributes)
    Parameters
    Type Name Description
    System.Object htmlAttributes
    Returns
    Type Description
    RadioButtonBuilder

    Label(String)

    Defines the caption for the RadioButton, that describes the purpose of the RadioButton.

    Declaration
    public RadioButtonBuilder Label(string label)
    Parameters
    Type Name Description
    System.String label
    Returns
    Type Description
    RadioButtonBuilder

    LabelPosition(RadioLabelPosition)

    Positions label before/after the RadioButton. The possible values are: Before: The label is positioned to left of the RadioButton. After: The label is positioned to right of the RadioButton.

    Declaration
    public RadioButtonBuilder LabelPosition(RadioLabelPosition labelPosition)
    Parameters
    Type Name Description
    RadioLabelPosition labelPosition
    Returns
    Type Description
    RadioButtonBuilder

    Locale(String)

    Overrides the global culture and localization value for this component. Default global culture is 'en-US'.

    Declaration
    public RadioButtonBuilder Locale(string locale)
    Parameters
    Type Name Description
    System.String locale
    Returns
    Type Description
    RadioButtonBuilder

    Name(String)

    Defines name attribute for the RadioButton. It is used to reference form data (RadioButton value) after a form is submitted.

    Declaration
    public RadioButtonBuilder Name(string name)
    Parameters
    Type Name Description
    System.String name
    Returns
    Type Description
    RadioButtonBuilder

    Render()

    Declaration
    public HtmlString Render()
    Returns
    Type Description
    Microsoft.AspNetCore.Html.HtmlString

    Value(String)

    Defines value attribute for the RadioButton. It is a form data passed to the server when submitting the form.

    Declaration
    public RadioButtonBuilder Value(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type Description
    RadioButtonBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved