I have issue wuth Firefox not displaying style “text-decoration: line-through”.
I am using jqGrid for displaying list of medications. If medication is not active, it has to be crossed. In my afterInsertRow event I do this:
$('#' + rowid).css({ 'text-decoration': 'line-through', 'color': 'red' })
It works fine for IE and Chrome, but Firefox displays only red text without crossing line.
When I look into firebug output, I can see that <tr> element has style definition including text-decoration, but it is simply not displaying the way I need.
If you modify your code to
if will works. If you use
rownumbers: trueand don’t want the row number be strikethrough, you can useOne more small recommendation: use
gridview: trueto fill jqGrid more quickly. In this mode the whole table contain will be filled by jqGrid as a siring and will be inserted with onejQurey.appendoperation. The usage ofafterInsertRowevent break the rule, because every row will be inserted with ajQurey.appendoperation and then will be calledafterInsertRow. So my recommendation: usegridview: trueand don’t useafterInsertRow. To make changes of css useloadCompleteorgridCompleteinstead like: