Hello there,
is it possible to always show row strips in VAADIN Grid, also if the privider is empty?
best
Jan
Hello there,
is it possible to always show row strips in VAADIN Grid, also if the privider is empty?
best
Jan
I don’t believe that is possible directly, since the row stripes come from actual rows. But there is no row, if there are no items.
I can think of some workarounds that come close, but I personally would not want to implement them, I’d rather push back on the requirement of having the row stripes in the first place.
bad workaround #1: define a background-image on the grid that looks like row stripes.
bad workaround #2: check if your dataprovider returns an empty list, and if so then create empty mock items and return those instead.
i guess i will push back the requirement, but thanks for your reply and workaround-ideas!