Class RadioButtonBuilder
Inheritance
System.Object
RadioButtonBuilder
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()
Assembly: Syncfusion.EJ2.dll
public class RadioButtonBuilder : ControlBuilder
Constructors
Declaration
public RadioButtonBuilder()
Declaration
public RadioButtonBuilder(RadioButton model)
Parameters
Fields
Declaration
Field Value
Properties
Declaration
public IDictionary<string, object> HtmlAttr { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Declaration
public string ID { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public override TextWriter Output { get; set; }
Property Value
Type |
Description |
System.IO.TextWriter |
|
Overrides
Methods
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
Declaration
public RadioButtonBuilder Checked(bool check = true)
Parameters
Type |
Name |
Description |
System.Boolean |
check |
|
Returns
Triggers once the component rendering is completed.
Declaration
public RadioButtonBuilder Created(string created)
Parameters
Type |
Name |
Description |
System.String |
created |
|
Returns
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
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
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
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
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
You can add the additional html attributes such as disabled, value etc., to the element.
If you configured both property and equivalent html attribute then the component considers the property value.
Declaration
public RadioButtonBuilder HtmlAttributes(object htmlAttributes)
Parameters
Type |
Name |
Description |
System.Object |
htmlAttributes |
|
Returns
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
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
Returns
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
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
Declaration
public HtmlString Render()
Returns
Type |
Description |
System.Web.HtmlString |
|
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