Closed bbankowski closed 1 year ago
The 'selected' style is applied to all the columns in the row (unless the column has 'selectable:false').
See http://mleibman.github.io/SlickGrid/examples/example9-row-reordering.html
When fullWidthRows option is set to true, odd, even and active rows are styled but you have no way of styling the selected row.
See the example: http://jsfiddle.net/fxt81gu1/5/ The last 'empty' column cannot be styled as selected.
My point was that the 'selected' css styling is applied to the cells in the row, not the row div itself.
I haven't really tried the fullWidthRows option, but that appears to be adding empty space to the right, not a blank column. The alternating row style spills over into that space.
To add selected row styling would be a departure from how it's currently done. Not sure that's gonna make it into the trunk.
By "empty column" I mean the empty space which can also hold scroll bar. I don't understand why 'active' class can be applied to the row (in addition to cells) but 'selected' cannot.
I presume that in most use cases developers care about selected row not cell.
It's very strange that e.g here http://jsfiddle.net/hu6x8p7y/4/ you cannot style the whole selected row (barring hacks with getItemMetadata).
I don't say that class has to be named 'selected' it can be 'selected-row' or anything I just think that this is an inconsistency in slickgrid api.
There was no way to customize CSS for selected rows, as it didn't have 'selected' style.