Javascript 剑道mvc刷新单元格值
我正在尝试使用javascript刷新网格单元格。我引用了两个要刷新的单元格,但命令refresh()或read()不起作用:Javascript 剑道mvc刷新单元格值,javascript,c#,model-view-controller,kendo-ui,Javascript,C#,Model View Controller,Kendo Ui,我正在尝试使用javascript刷新网格单元格。我引用了两个要刷新的单元格,但命令refresh()或read()不起作用: 有多种方法可以更新网格中的单元格值 1.在数据绑定事件中 function Grid_DataBound(e) { var rows = e.sender.tbody.children(); for (var j = 0; j < rows.length; j++) { var row = $(rows[j]);
有多种方法可以更新网格中的单元格值 1.在数据绑定事件中
function Grid_DataBound(e) {
var rows = e.sender.tbody.children();
for (var j = 0; j < rows.length; j++) {
var row = $(rows[j]);
row[0].cells[i].innerHTML = 'Your UpdatedText ';
}
}
function ControlChange(args) {
var currentRow = $(args.currentTarget).closest("tr")[0];
//If needed you can access datasource
var dataItem = $("#Report_Grid").data("kendoGrid").dataItem(currentRow);
currentRow.cells[4].innerHTML = 'Your UpdatedText ';
}