@{
List<object> commands = new List<object>();
commands.Add(new { buttonOption = new { iconCss = "e-icons e-print", cssClass = "e-flat Print", id = "Print" } });
});
}
@Html.EJS().Grid("UrlAdaptor").DataSource((IEnumerable<object>)ViewBag.dataSource).CommandClick("CommandClick").AllowSorting().AllowResizing().AllowReordering().AllowGrouping().AllowFiltering().AllowExcelExport().ShowColumnChooser(true).Columns(col =>
{
col.HeaderText("Action").Commands(commands).Width("90").CustomAttributes(new { @class = "customcss" }).Add();
function customiseCell(args) {
if (args.column.field === 'Status') {
if (args.data['Status'] == 'Data Has Not Been Scanned') {
args.cell.classList.add('below-5');
........?
} else if (args.data['Status'] == 'Data Has Been Scanned') {
args.cell.classList.add('below-8');
......?
}
}
}