{ name: 'Active', index: 'Active', width: 150, align: 'center', editable: true, edittype: 'checkbox', editoptions: { value: "true:false", defaultValue: "false" }, formatter: function (cellvalue, options, rowObject) { if (cellvalue == 'true' || cellvalue == true) { return "<img src='Images/active.png' style='width: 20px; height: 20px;' alt='Active'title='Active' />"; } else { return "<img src='Images/inactive.png' style='width: 20px; height: 20px;' alt='In Active'title='In Active' />"; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)