Note that there are some explanatory texts on larger screens.

plurals
  1. POBolding Line Between Columns in JQgrid
    text
    copied!<p>I am trying to bold the lines in between columns on the <code>JQgrid</code> I am working on. I am trying to get the column line before Special, Exit, Buyback, Reset, New, and other bolded. Any help would be appriciated</p> <pre><code> $("#departmentGrid").jqGrid({ datatype: 'jsonstring', datastr : departmentData, colNames:['SVP', 'Dept','Mkt Inact OH $','% to Ttl', 'Special', '% to Ttl', 'Exit','% to Ttl','Buyback','% to Ttl','Reset','% to Ttl','New’,'% to Ttl', 'Other','% to Ttl'], colModel:[ {name:'svp',index:'svp', sorttype:'int', width:'5', align:'left', editoptions: {border: '3'}}, {name:'dept',index:'dept', sorttype:'int', width:'2', align:'left'}, {name:'mktDollars',index:'mktDollars', sorttype:'int', width:'4', align:'right'}, {name:'mktPercent',index:'mktPercent', sorttype:'int', width:'2', align:'center'}, {name:'rsn',index:'rsnCdSpecBuy', sorttype:'int', width:'3', align:'right'}, {name:'rsnCdSpecBuyPercent',index:'rsnCdSpecBuyPercent', sorttype:'int', width:'2', align:'center'}, {name:'exit',index:'exit', sorttype:'int', width:'2', align:'right'}, {name:'exitPercent',index:'exitPercent', sorttype:'int', width:'2', align:'center'}, {name:'buyback',index:'buyback', sorttype:'int', width:'2', align:'right'}, {name:'buybackPercent',index:'buyback', sorttype:'int', width:'2', align:'center'}, {name:'reset',index:'reset', sorttype:'int', width:'2', align:'right'}, {name:'resetPercent',index:'resetPercent', sorttype:'int', width:'2', align:'center'}, {name:'new',index:'newSku', sorttype:'int', width:'2.5', align:'right'}, {name:'newPercent',index:'newPercent', sorttype:'int', width:'2', align:'center'}, {name:'other',index:'other', sorttype:'int', width:'2', align:'right'}, {name:'otherPercent',index:'otherPercent', sorttype:'int', width:'2', align:'center'}, ], jsonReader: { root: "results", repeatitems: false }, gridview: true, altRows: false, sortorder: "asc", height:'auto', selrow:true, autowidth: true, title:true, caption:false, loadComplete: function(){ var rowIDs = jQuery("#departmentGrid").getDataIDs(); var allRowsOnCurrentPage = $('file-grid').jqGrid('getDataIDs'); for (var i=0;i&lt;rowIDs.length;i=i+1){ rowData=jQuery("#departmentGrid").getRowData(rowIDs[i]); var trElement = jQuery("#"+ rowIDs[i],jQuery('#departmentGrid')); if (rowData.dept == "") { trElement.addClass('total_row'); } if(rowData.svp != ""){ trElement.addClass('svp_row'); } } } }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload