New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI RadioButton component

Definition

Constructors

Initializes a new instance of the RadioButton class.

C#
public RadioButton(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

The checked state of the RadioButton.

C#
public bool? Checked { get; set; }

If set to false, the RadioButton will be disabled and will not allow the user to change its checked state.

C#
public bool? Enabled { get; set; }

Determines whether the radio label content should be rendered as an HTML string or it should be encoded.

C#
public bool? Encoded { get; set; }

Id member.

C#
public override string Id { get; }

Overrides: WidgetBase.Id

Specifies the label content for the radio.

C#
public string Label { get; set; }

Sets a value controlling the size of the component.

C#
public ComponentSize? Size { get; set; }

Value member.

C#
public object Value { get; set; }

Methods

GetModelExplorer method.

C#
protected virtual ModelExplorer GetModelExplorer()
Returns:

ModelExplorer

IsCheckedFromModel method.

C#
protected virtual bool IsCheckedFromModel()
Returns:

bool

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteHtml(TextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)