0
Could I condition a different color if a column is blank in GRID?
Something like this:
if Shop ="", red line color
$table.jqGrid({
url: url,
datatype: 'json',
mtype: 'GET',
postData: {
representante: function () { return jQuery("#representante option:selected").val(); },
vendedor: function () { return jQuery("#vendedor option:selected").val(); },
nome: function () { return jQuery("#nome").val(); }
},
colModel: [
{ label: 'RECNO', name: 'RECNO', width: 80 },
{ label: 'Cliente', name: 'CLIENTE', width: 80 },
{ label: 'Loja', name: 'A1_LOJA', width: 80 },
{ label: 'Nome', name: 'A1_NOME', width: 350 },
{ label: 'CNPJ', name: 'A1_CGC', width: 120 },
{ label: 'Municipio', name: 'A1_MUN', width: 150 },
{ label: 'Telefone', name: 'A1_TEL', width: 80 },
],
viewrecords: true,
rowNum: 20,
rowList: [20, 40, 100],
height: "auto",
//height: 400,
emptyrecords: "Nenhum Cliente",
loadtext: "Buscando e carregando...",
//rowNum: 20,
pager: "#jqGridPager",
loadonce: true
});
The image shown, would have to come with the second red line. Since it brought the two blank fields.