I am trying to create a grid that should have auto-separation of columns (in some restrictions), and its width should never exceed the width of the parent div.
I have 4 columns:
col1 col2 col3 col4 ------------------------------------------ | very long text | ... | ... | ... | | ... | ... | ... | ... | ------------------------------------------
The values in the first column are very long, so I use the style: white-space: nowrap; text-overflow: ellipsis; white-space: nowrap; text-overflow: ellipsis; the text remains on one line. I want col2 be 105-170px, col3 40-190px and col4 75-150px. I like to keep it as small as possible to avoid the appearance of huge white spaces.
I know that something like this can be achieved by setting scrollable: true , but I don't need a scrollbar, and I really don't like the way it sits there without any use.
source share