jqGrid zebra striping
Asked Answered
A

1

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

Artema answered 8/10, 2010 at 16:10 Comment(0)
U
4

Yes. Use the altRows and altclass options.

Uncouple answered 8/10, 2010 at 16:17 Comment(3)
Is there a way you can use this with your JQuery UI theme?Artema
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..Artema
@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.Deracinate

© 2022 - 2024 — McMap. All rights reserved.