Add option to hide the "indent" when grouping a grid #595
Labels
Discussion
Technical discussion, questions, input needed
Enhancement
New feature of an existing functionality or an improvement of an existing functionality
pkg:Grid
I'm submitting a...
Current behavior
When you add a grouping to a grid it indents all the rows by 32 pixels.
Expected behavior
Set an option in GridGroupableSettings, similar to
footer:visible
maybeindent:none
and be able to hide the indent cell.Minimal reproduction of the problem with instructions
This is a very simple example of the problem - in a container of exactly 300 pixels, as you can see the grid is 332 pixels due to the indent, and it breaks the layout. If you remove the grouping the layout is fixed again.
https://stackblitz.com/edit/react-a337ft
What is the motivation or use case for changing the behavior?
We have a Grid in a part of the site where space is very restricted. This is to be displayed on an iPad where every pixel of screen space counts. Recently we added grouping to the grid to make it easier to read, but it broke the layout. We can't use grouping in parts of the site due to this issue.
Browser:
System:
The text was updated successfully, but these errors were encountered: