views:

37

answers:

1

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

+1  A: 

Yes. Use the altRows and altclass options.

Craig Stuntz
Is there a way you can use this with your JQuery UI theme?
Marcus
It isn't clear what you mean.
Craig Stuntz
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
@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