After adjusting the size on line 23 <RadzenDataGridColumn Title="Title" Property="@nameof(Employee.TitleOfCourtesy)" Filterable=@allowCompositeDataCells Sortable=@allowCompositeDataCells Width="600px"> we now get 600px
I'm reacting to the width of 'Job Title'. Its requested width is 200px. But, its actually 820. I gather the 820px width request for 'Title' is being applied to the first of the 5 columns it is spanning.
I'm working with a page where we have a colspan of like 15, and its very obviously a problem that the first column ends up extremely wide. When I tried not specifying the width for the outermost column the table wouldn't have the necessary horizontal scroll. Either way we end up with something that isn't really legible.
I see now what you are referring. Indeed even if the width is correctly and explicitly specified the cell will be stretched to occupy the calculated width by the parent - this is how HTML table works.
Ok. Is there anything we can do to get the expected behavior? In the demo, certainly looks like the job title isn't supposed to be that wide.
This gets past how much I know about css, but a very simple example did do what I expected.
All the columns rendered at their target sizes, unless the parent headers had a required width that was larger than their children summed up.