New to Kendo UI for jQueryStart a free 30-day trial

Value

methods

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:valueArray

The value to set.

Returns:Array

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

<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>
Not finding the help you need?
Contact Support