CheckAll() is not setting the values array in an MVVM model

1 Answer 63 Views
CheckBoxGroup
Elisa
Top achievements
Rank 1
Iron
Elisa asked on 06 Aug 2021, 04:45 PM
I combined two demos in an attempt to show that the CheckAll of a check box group does not set the bound values array. I know this control is new, so is this something that will be fixed in a future release? Do you have a workaround for now?
Elisa
Top achievements
Rank 1
Iron
commented on 19 Aug 2021, 03:46 PM

Neli, this totally did the trick. Thanks for the quick and accurate response!

1 Answer, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 11 Aug 2021, 11:18 AM

Hello Elisa,

I would suggest you trigger the change event after the checkboxes has been checked:

 if (this.checked) {
        console.log("Checked ALL!");
          checkBoxGroup.checkAll(true)
              	
 } else {
        checkBoxGroup.checkAll(false)
}
checkBoxGroup.trigger('change')

Here is the modified example.

I hope this helps.

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.

Tags
CheckBoxGroup
Asked by
Elisa
Top achievements
Rank 1
Iron
Answers by
Neli
Telerik team
Share this question
or