3

Does jqGrid support zebra striping? I can't see any examples.

By zebra striping I mean each even row has one color and each odd row has another color.

Currently we are using JQuery UI themes to theme our grids.. ideally the way we do striping won't interfere with us using the UI themes

Marcus Leon
  • 55,199
  • 118
  • 297
  • 429

1 Answers1

4

Yes. Use the altRows and altclass options.

Craig Stuntz
  • 125,891
  • 12
  • 252
  • 273
  • Is there a way you can use this with your JQuery UI theme? – Marcus Leon Oct 08 '10 at 17:58
  • Using `altRows:true` is there a CSS class included in the JQuery UI themes that will be used by jqGrid? Or will the CSS class be a specific class used by jqGrid? I see you can provide your own class using `altclass` but I'd prefer to let the JQuery UI theme designers design the class.. – Marcus Leon Oct 08 '10 at 18:34
  • 2
    @Marcus: deafult value of the `altclass` is `'ui-priority-secondary'`. It is full JQuery UI themes conform, but in my opinion one can see very difficult the results of the class `'ui-priority-secondary'` in the themes redmond which I mostly use. – Oleg Oct 08 '10 at 19:54