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
  • 83,816
  • 72
  • 267
  • 404
giorgio79
  • 3,353
  • 8
  • 46
  • 76

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
  • 219,533
  • 32
  • 395
  • 775
  • 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