value

Gets or sets the value (the checked radio button) of the RadioGroup. If the passed value is not present among the values of the radio buttons, the value would not changed. If passing null, the value of the widget will be reset and the checked state will be removed from the selected radio input.

  • The value method does not trigger select or change events. Those events are triggered by user interaction.

Parameters

value String

The value to set.

Returns

String The value of the RadioGroup (the value of the checked radio button), if any.

Example

<ul id="radiogroup"></ul>

<script>
    $("#radiogroup").kendoRadioGroup({
        items: [ "one", "two", "three" ]
    });

    var radioGroup = $("#radiogroup").getKendoRadioGroup();
    radioGroup.value("two");
    // The result can be observed in the DevTools(F12) console of the browser.
    console.log(radioGroup.value());
</script>
In this article