Skip to content
This repository has been archived by the owner on Jan 1, 2020. It is now read-only.

Add support for CSS-only zebra striping #16

Open
flack opened this issue Jan 7, 2015 · 0 comments
Open

Add support for CSS-only zebra striping #16

flack opened this issue Jan 7, 2015 · 0 comments
Milestone

Comments

@flack
Copy link
Contributor

flack commented Jan 7, 2015

Currently, it is not possible to implement CSS-only zebra striping, because hidden rows (e.g. collapsed groups or collapsed child levels) have the same classes as visible ones. So if you have a CSS rule like

.ui-jqgrid-btable tr.jqgrow:nth-child(2n+1)
{
    background-color: gray
}

it will only work in simple cases, but it will produce wrong results if some of the rows are hidden.

So I would propose adding a class like jqrow-visible to all visible rows, then we could write

.ui-jqgrid-btable tr.jqgrow-visible:odd
{
    background-color: gray
}

without needing altrows and altclass config options

@meh-uk meh-uk added this to the 2.0 milestone Jan 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants