1

It seems jqGrid is not assigning any CSS ids to cells by default.

Any tips how to go about it?

I notice I can assign classes per column as per the wiki, but I would like to add CSS ids.

laurent
  • 88,262
  • 77
  • 290
  • 428
giorgio79
  • 3,787
  • 9
  • 53
  • 85

1 Answers1

2

Why jqGrid schould assign an additional CSS class for every cell if jqGrid not use the class? If you need to add a CSS class to some jqGrid cells you can use setCell method.

$("#list").jqGrid('setCell', id, colName, '', "someCssClass");

See modified demo for this old answer as an example.

Community
  • 1
  • 1
Oleg
  • 220,925
  • 34
  • 403
  • 798
  • Appreciated Oleg. I want to use it with iMacros that needs proper css iding for usage :) Your example will get me there I think. – giorgio79 Jan 17 '11 at 06:51
  • @giorgio79: Sorry, but I don't understand what you mean. You should explain all more exactly. – Oleg Jan 17 '11 at 08:50