I read a lot of posts relating to column widths, but i didn't come across what i was looking for. Please forgive me if this is a repost.
I have a problem that can be quite clearly seen in the Scrolling demo here:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx
Turn the static headers on and off and watch the sizes of the columns.
When i have the client scrolling + static headers turned on, my grid no longer automatically sizes the columns in a reasonable way. I have a grid with a number of very small columns, and a couple of large descriptive ones. With scrolling and static headers off, it looks great. The big descriptive columns take up the majority of the space, and the smaller columns are allocated almost nothing - tight around the data.
As soon as static headers + scrolling is on, the widths are almost random. The description columns will now only get *slightly* more than others - and none of the columns are tight around the data. When the description fields are shrunk down, they wrap such that each row is now giant - it makes it basically unreadable.
Bottom Line:
Is there any possible way i can do something to maintain the great auto sizing, but still get static headers + scrolling?
-RP
EDIT: i feel like i should probably point out that i cannot hard code my column widths here - not even in percentages. The number of columns being displayed, as well as the data contained within, will vary greatly. The default auto sizing handles that perfectly, but is upset by the static + scroll.
I have a problem that can be quite clearly seen in the Scrolling demo here:
http://demos.telerik.com/aspnet-ajax/grid/examples/client/scrolling/defaultcs.aspx
Turn the static headers on and off and watch the sizes of the columns.
When i have the client scrolling + static headers turned on, my grid no longer automatically sizes the columns in a reasonable way. I have a grid with a number of very small columns, and a couple of large descriptive ones. With scrolling and static headers off, it looks great. The big descriptive columns take up the majority of the space, and the smaller columns are allocated almost nothing - tight around the data.
As soon as static headers + scrolling is on, the widths are almost random. The description columns will now only get *slightly* more than others - and none of the columns are tight around the data. When the description fields are shrunk down, they wrap such that each row is now giant - it makes it basically unreadable.
Bottom Line:
Is there any possible way i can do something to maintain the great auto sizing, but still get static headers + scrolling?
-RP
EDIT: i feel like i should probably point out that i cannot hard code my column widths here - not even in percentages. The number of columns being displayed, as well as the data contained within, will vary greatly. The default auto sizing handles that perfectly, but is upset by the static + scroll.