cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Responsive Smart Table AutoColumnWith with full screen size

axel_brke3
Participant
552

Hi, we're currently creating Responsive UI5 applications.

I really like the concept of AutoColumnWidth adjusting the columns according to the content sizes. Also there is a nice table propery "customizeConfig" seting AutoColumnWith for all Columns

However, when I set enableAutoColumnwith="true", the table does not fill the sceen anymore.

axel_brke3_0-1726231753464.png


This is a requirement for us and I wonder if it's possible to have a column adjust to the remaining screen size automatically

Any input is much appreciated! 

Accepted Solutions (0)

Answers (1)

Answers (1)

EC
Participant
0 Kudos

Hi @axel_brke3 ,

I am very interested in your solution: we never get the AutoColumnWidth property to work so we switch to the cds annotation for column width but even there, we define the column individually, so how come it can adjust the  table global width ?

EDIT: we find a solution: we used the column width property in the manifest and set it to auto as below.

EC_0-1740667229150.png

We also try these 2 other solutions:

  • Annotation in cds metadata extension: we try annotation @UI.lineItem:[{cssDefault.width:'x%'}]  but it did not work for some reason (I guess it allow works with OData V4).
  • Property "enableAutoColumnWidth": true or "AutoColumnWidth": auto but no success.