RadioButtonTagHelper
Kendo UI RadioButton TagHelper RadioButtonTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-radiobutton")]
public class RadioButtonTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseRadioButtonTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-radiobutton name="exampleRadio" checked="true"></kendo-radiobutton>
Constructors
Initializes a new instance of the RadioButtonTagHelper class.
public RadioButtonTagHelper(IKendoHtmlGenerator generator)
Properties
If set to false, the RadioButton will be disabled and will not allow the user to change its checked state.
public bool? Enabled { get; set; }
Determines whether the radio label content should be rendered as an HTML string or it should be encoded.
public bool? Encoded { get; set; }
An expression to be evaluated against the current model.
public ModelExpression For { get; set; }
The name of the JavaScript function that will handle the change event. Fires when the checked state of the RadioButton is changed through user interaction.
public string OnChange { get; set; }
Sets a value controlling the size of the component.
public ComponentSize? Size { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: