0
votes

I'm using kendo (2019.1.220) and knockout(v3.4.2). I have a grid on the page with a checkbox column. The checkbox binding is set up like this:

<input tabindex="-1" onclick='gGridRowCheckBoxClick("308610", this.checked)' type="checkbox" data-bind="value: isChecked, checked: isChecked">

I have a button that retrieves a new data set for the grid based on what items the user has checked. The dataset comes back correctly with the 'isChecked' node coming back as true, but the checkbox in the grid does not display as checked.

The data looks like this on return:

"Data":[
    {"isChecked":true},
    {"isChecked":true},
    {"isChecked":true}
    ],
"Total":3,
"IsSuccess":true,
"Message":""}'

I'm not sure why the check boxes don't display as checked.

1

1 Answers

0
votes

with <input type="checkbox" /> you only need to have the data-bind="checked: isChecked" added to the binding. you can remove the value: isChecked