Я использую как событие Kendo grid onchange, так и функцию Select, но когда я нажимаю на любой флажок, вызывается мое событие щелчка строки. Я также использую подкачку на стороне сервера. И моя структура столбцов происходит из базы данных json.
код:
$("#grid").kendoGrid({
dataSource: sharedDataSource,
pageable: {
refresh: true,
pageSizes: [5, 10, 15, 20, 50, 100, 200],
input: true,
buttonCount: 5
},
sortable: true,
resizable: true,
columnMenu: true,
reorderable: true,
columnResizeHandleWidth: 6,
change: onChange,
filterable: true,
selectable: true,
scrollable: true,
dataBound: function (e) {
persistSelection();
},
noRecords: {
template: "No data found for this search"
},
columns: myColumns
}).data("kendoGrid");
}
и столбцы JSON:
{
"selectable": true,
"template": "<input type=\"checkbox\" style=\"margin-left: 4px;\" class=\"checkone\" id=\"#= Id #\">",
"width": 50
},
{
"encoded": true,
"field": "FirstName",
"title": "First Name",
"width": 200
}
}