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"]);
    console.log(checkGroup.value());
</script>
In this article
Not finding the help you need? Improve this article