Responsive DataGrid

Hello everyone,
I would like to know how can I do to make my Datagrid responsive in order to always display all the columns without horizontal scrollbar? For example by changing the font size or the column width? Is that possible?

Thank you,
Regards
Thomas

Hi,

I’m assuming you’re using Jmix v2. By default all columns have equal width with minimum value 100px, which means that horizontal scroll bar is shown only if the current amount of columns with minimal width can’t fit into DataGrid width.

The width attribute can be used to set column width. Pay attention that by default the width value is used as minimal width because of flexGrow attribute that must be set to 0 if you need a column to have a fixed width. See doc for column attribute description.

Regards,
Gleb