I am looking for some guidance on understanding column width for composite columns for the DataGrid component. If I use a single row of columns, the widths function exactly as expected. If I use a composite column, some of the widths function as expected but there is always at least one column that displays an incorrect width.
Looking at the demo, it appears it suffers from a similar issue:
In the demo, you can see the following columns are all set to 140px:
Thanks for the response. I will share my personal project example then as I have a variable column width set for my first column to expand to take the empty space.
If I do not use composite columns, this works exactly as expected:
I am not an HTML/CSS expert so if I am still misunderstanding that this shouldn't work please let me know - but I would expect that if it works without composite columns adding in composite columns should not change break the sizing.
For anyone else with the same issue -
Do not use Width= on the RadzenDataGridColumn objects. It applies the width to the "col" entities which causes all of these issues when using multiple rows of headers. Put your widths into CSS and use HeaderCssClass= on the RadzenDataGridColumn and everything will work as expected.
This seems like a bug to me but at least I have it working now. I will leave that call up the Radzen team.