jqGrid Coloring an entire line in Grid based upon a cells value

前端 未结 7 1831
难免孤独
难免孤独 2020-12-03 04:05

I know it\'s been asked before, but I cant get it to run and I\'m out of things to try.

I want to colorize a row in a Grid if its value is not 1 - I use a custom for

7条回答
  •  春和景丽
    2020-12-03 04:45

    I suggest that you try someing like this. This will actualy give you access to the whole row.

    afterInsertRow: function(rowid, aData, rowelem) 
         {  
            if (aData.field =='value'){    
                jQuery("#list1").setCell(rowid,'message','',{color:'red'});   
            }   
         } 
    

提交回复
热议问题