Hello,
I've the following function:
function
setStatusRows()
{
var ids = $(“#cfg”).jqGrid('getDataIDs');
for (var i = 0; i < ids.length; i++) {
var c = $(“#cfg”).getRowData(ids)['isactive'];
action = c.toString();
if (action.length > 0)
{
icon_critical =
“
“;
icon_ok =
“
“;
action = action.replace(
“#True#”, icon_ok);
action = action.replace(
'#False#', icon_critical);
$(
“#cfg”).jqGrid('setRowData', ids, { status: action });
}
}
}
My table has the name “cfg” and one of the columns
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top