JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<script src="http://www.jeasyui.com/easyui/jquery.edatagrid.js"></script>
<table id="dg"></table>
JavaScript
var data = [
{f1:'v11',f2:'v12',f3:'v13'},
{f1:'v21',f2:'v22',f3:'v23'},
{f1:'v31',f2:'v32',f3:'v33'},
{f1:'v41',f2:'v42',f3:'v43'}
];
$('#dg').edatagrid({
columns: [[
{field:'f1',title:'title1',width:100,editor:'text'},
{field:'f2',title:'title2',width:100,editor:'text'},
{field:'f3',title:'title3',width:100,editor:'text'},
{field:'f4',title:'NotSave',width:50,editor:{type:'checkbox',options:{on:1,off:0}}}
]],
data: data,
autoSave: true,
onBeforeSave: function(index){
var ed = $(this).edatagrid('getEditor',{index:index,field:'f4'});
if ((ed.target).is(':checked')){
return false;
}
}
});