$(function(){
// 单元格单击事件
$("#dataGrid").datagrid({
onClickCell: function (rowIndex, field, value){
var putValue = "V" === value?"":"V";
$('#dataGrid').datagrid('getRows')[rowIndex][field] = putValue;
$('#dataGrid').datagrid('refreshRow', rowIndex);
},
onClickRow: function (rowIndex, rowData) {
$(this).datagrid('unselectRow', rowIndex);
}
});
});
EasyUI dataGrid 修改单元格值
最新推荐文章于 2021-08-04 10:37:37 发布