New to Telerik UI for ASP.NET MVC? 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, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

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; }

Gets the id.

C#
public override string Id { get; }
Property Value:

The id.

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; }
C#
public object Value { get; set; }

Methods

C#
protected virtual bool IsCheckedFromModel()
Returns:

bool

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)