[英]Unable to check the multi-select checkbox filter of the Kendo Grid Programmatically
[英]Checkbox in kendo grid not displaying check
我正在使用劍道(2019.1.220)和淘汰賽(v3.4.2)。 我在頁面上有一個帶有復選框列的網格。 復選框綁定設置如下:
<input tabindex="-1" onclick='gGridRowCheckBoxClick("308610", this.checked)' type="checkbox" data-bind="value: isChecked, checked: isChecked">
我有一個按鈕,可以根據用戶檢查的項目檢索網格的新數據集。 數據集正確返回,“isChecked”節點返回為 true,但網格中的復選框未顯示為選中狀態。
返回時數據如下所示:
"Data":[
{"isChecked":true},
{"isChecked":true},
{"isChecked":true}
],
"Total":3,
"IsSuccess":true,
"Message":""}'
我不確定為什么復選框不顯示為已選中。
使用<input type="checkbox" />
您只需要將data-bind="checked: isChecked"
添加到綁定中。 您可以刪除該value: isChecked
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.