value

Gets or sets the value (the checked checkboxes) of the CheckBoxGroup. If some of the passed values are not present among the values of the checkboxes, those values will be disregarded. If passing an empty array, the value of the widget will be reset and the checked state will be removed from the selected checkboxes.

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

Parameters

value Array

The value to set.

Returns

Array Array of the selected values in the CheckBoxGroup, if any.

Example

<ul id="checkboxgroup"></ul>

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

    var checkGroup = $("#checkboxgroup").getKendoCheckBoxGroup();
    checkGroup.value(["two", "one"]);
    // The result can be observed in the DevTools(F12) console of the browser.
    console.log(checkGroup.value());
</script>
In this article