Completed
Last Updated: 12 May 2022 11:50 by ADMIN
Release 2022.R2.SP.next
Brightstar
Created on: 22 Apr 2022 18:56
Category: Kendo UI for jQuery
Type: Bug Report
1
CheckboxGroup.value([]) doesn't reset checked values like the doc says

The API docs for CheckboxGroup (https://docs.telerik.com/kendo-ui/api/javascript/ui/checkboxgroup/methods/value) states: "If passing an empty array, the value of the widget will be reset and the checked state will be removed from the selected checkboxes." But if you do this, it does NOT clear out any selections.

Code demo: https://dojo.telerik.com/IJOtaReh

Code snippit:

<ul id="checkboxgroup"></ul>
<script>
    $("#checkboxgroup").kendoCheckBoxGroup({ items: [ "one", "two", "three" ] });
    var checkGroup = $("#checkboxgroup").getKendoCheckBoxGroup();
    checkGroup.value(["two", "one"]);
    checkGroup.value([]);
</script>

 
3 comments
ADMIN
Neli
Posted on: 06 May 2022 08:20

Hello,

Thank you very much for the feedback and for sharing more details about your approach to work around the issue. 

The 'Unplanned' status stands for "Valid feature request or bug report, not scheduled for implementation yet."

This means that issue has not yet been assigned to a developer and at present, it is not being worked on. Once a developer starts working on it, the label will be updated accordingly to "In Development" to indicate the change in status.

Regards,
Neli
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Brightstar
Posted on: 29 Apr 2022 15:13

Neli,

Thanks for the response and acknowledgement. I came up with a similar workaround using .checkAll(false), but the problem is this: if I am trying to uncheck values (which there is no built in support for) I don't know that I'll uncheck all values. So I perform array manipulation to subtract values from the selected values. That may or may not result in an empty array. If it's empty, the expectation is I shouldn't need to then check that the array is empty and call a different function to uncheck the values.

So while the workaround does work it's not ideal and does not match what the documentation on the page states.

Being that this is a bug rather than a feature request and it is confirmed, why would it be "Unplanned" to fix rather than "Planned"?

Thanks,
Jeff

ADMIN
Neli
Posted on: 29 Apr 2022 10:52

Hello,

Thank you for bringing this bug to our attention. I changed the status of the item to 'Unplanned'.

As a workaround, If it is suitable for your scenario, you could pass null to the CheckBoxGroup value method - Dojo

I also updated your Telerik points as a small token of gratitude.

Regards,
Neli
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.