RadioGroupTagHelper

Example

Razor
<kendo-radiogroup>
    <kendo-radiogroup-items></kendo-radiogroup-items>
</kendo-radiogroup>

ChildTags

Tag NameDetails
kendo-radiogroup-itemsRadioGroupItemsTagHelper

Attributes

AttributeTypeDescription
nameStringSets the name of the component.
bind-toIList<IInputGroupItem>Defines an array of configuration objects to be rendered as radio button.
enabledBooleanSets the enabled state of all radio buttons in the RadioGroup.
forModelExpressionAn expression to be evaluated against the current model.
input-nameStringThe name attribute to be used for the radio inputs. If omitted, the id of the wrapper element will be used.
input-sizeComponentSizeSets a value controlling the size of the input.
label-positionRadioGroupLabelPositionSpecifies the label position according to its radio button for all items in the widget. Accepts "before" and "after".
layoutRadioGroupLayoutSpecifies whether the radio buttons will be rendered one below the other ("vertical") or on the same line ("horizontal").
on-changeStringThe name of the JavaScript function that will handle the change event. Fires when the selected radio input in the RadioGroup is changed through user interaction.
on-focusStringThe name of the JavaScript function that will handle the focus event. Fires when a radio input in the RadioGroup is focused through user interaction.
on-selectStringThe name of the JavaScript function that will handle the select event. Fires when a radio input is clicked to be selected through user interaction. If prevented, the clicked input will not be selected.
script-attributesIDictionary<String,Object>Sets the attributes that will be added to the script tag of the component's initialization script.
valueStringThe selected (checked) radio button value. Will also be used as a RadioGroup widget value.
is-in-client-templateBooleanWhen placing a Tag Helper within a Kendo Template, set the type to text/html and add the is-in-client-template="true" attribute.
deferredBooleanSuppress initialization script rendering. Note that this options should be used in conjunction with DeferredScripts method.
as-moduleBooleanSpecifies whether the initialization script of the component will be rendered as a JavaScript module.
In this article
ExampleChildTagsAttributes
Not finding the help you need?
Contact Support