Custom Column Width

Hi,
we’re using Cumulocity 1021.31.4 with Angular 18.2.0.

We have a grid that displays detailed structure and hierarchy of a tenants devices, due to some complexity and requirements I had to build a custom select and collapse mechanism that is displayed in the first two columns through header and cell renderers.

After some tinkering trying to get the first to columns to be smaller than the rest (adjusting the grid-template) which did not work I come to you and want to ask if there is any way to adjust only these two columns width

Hi Flubio,

you can adjust the column width by using the property gridTrackSize of the Column interface, e.g. gridTrackSize: '150px'.

Best regards

Thank you for helping me this quickly :slight_smile:

Best regards