Hi,
First of all I would like to say that I really like a lot of stuff with the Grid. It is packed with good features and once you get the hang of how to use it, it is nice to work with.
Having said that I did stumble upon a problem when using the autowidth
property in the Grid settings and I have a couple of questions regarding it:
1. Is autowidth
a supported feature?
2. If it is supported, where is the documentation for it? What is it supposed to do?
My understanding of this property, mainly based on its name I guess, was that the width of the Grid would resize based on the visible columns. It is also the desired behavior – at least for us.
Well, it turns out that it did not. The Grid width remains the same when I show/hide columns. The reason for this is that hidden columns keep their width even though they are hidden. I wonder if this is a bug?
We did come up with a workaround for when hiding a column. It involves temporarily storing a columns width
value in its maxwidth
property before setting the width
to 0. Then, of course, using that when we call ‘showcolumn’ (and resetting the maxwidth
to auto
).