0

I want to change the color of a particular row in jQgrid/treeGrid. can anyone share the code for that?

Femi
  • 63,688
  • 8
  • 117
  • 146

1 Answers1

0

It works exactly like with other jqGrids. Look at the answer. With respect of addClass('...') to <tr> elements the background color can be changed.

Community
  • 1
  • 1
Oleg
  • 219,533
  • 32
  • 395
  • 775
  • I am not defining any in my code. I am using rowid in my code. can you help me? – manish987654321 Jul 19 '11 at 05:22
  • @manish987654321: grid rows will be represented as HTML `` (table row) elements. If you has `rowid` of the row, which choler you want change, `$('#'+rowid).addClass('myAltRowClass');` – Oleg Jul 19 '11 at 05:27