Hi,
how to set the fourth parameter of the setCell method : the class parameter
$("#myGrid").jqGrid('setCell',rowid,'label', **class** ,{color:'black', weightfont:'bold'});
Thank you !
Hi,
how to set the fourth parameter of the setCell method : the class parameter
$("#myGrid").jqGrid('setCell',rowid,'label', **class** ,{color:'black', weightfont:'bold'});
Thank you !
You can just define in your CSS file a new class like
.MyCell {
color:'black';
weightfont:'bold'
}
and then use
$("#myGrid").jqGrid('setCell',rowid,'label', '', 'MyCell');
It seems to me that following will also work
$("#myGrid").jqGrid('setCell',rowid,'label', '', {color:'black', weightfont:'bold'});
Thanks a lot, it works now !
I simply wrote :
afterInsertRow: function(rowid){
$("#myGrid").jqGrid('setCell',rowid,'label','',{color:'gray', weightfont:'bold'});
$("#myGrid").jqGrid('setCell',rowid,'label', '', 'ui-state-default');
},