Hi,
I would like to add a header row to a table but avoid having a column index in the model.
Please see this example with a header row here: https://codepen.io/anon/pen/jQbrzq?editors=1010 (based on: Record Mapper)
To assign the column captions to the column index within a TableRow, I need to set the column property. I have added a horizontal panel instead and added a binding from this panel to my columns array.
The columns are created in the horizontal panel, but the panel itself is not stretched to the full width of the parent.
If I set the columnSpan to 2, the horizontal panel is stretched to the correct width, but if I set it to 3 the width is wrong. Can you tell me where my mistake is?
Also, why do I need to set the columnSpan at all? Shouldn’t it be enough to set the stretch property of the horizontal panel to fill?