This question is locked. New answers and comments are not allowed.
Would it be possible to expose a property in the GridView to allow the last column to autosize to available space, yet still be resizable and still show width of content data by default?
I know there is the ability to set the width to "*" but then if the data is too wide for the grid, scrolling to the last column makes the column 0px (as it is the available space left). Also if we autogenerate columns then it is not practical to have this per-column XAML"fix" as the columns aren't declared in XAML or the ViewModel (MVVM).
This seems to be an issue for many users! Here are some of the links I've found on your forums
http://www.telerik.com/community/forums/silverlight/gridview/empty-column-always-added-as-the-last-column-in-radgridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/extend-last-column.aspx
http://www.telerik.com/community/forums/silverlight/gridview/scrollbar-missing-when-last-column-width-is-set-to.aspx
http://www.telerik.com/community/forums/silverlight/gridview/remove-the-last-null-column.aspx
http://www.telerik.com/community/forums/silverlight/gridview/gettting-extra-column-in-radgridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/extra-columns-generated.aspx
http://www.telerik.com/community/forums/silverlight/gridview/column-auto-width-issue.aspx
http://www.telerik.com/community/forums/silverlight/gridview/extra-column-at-the-end-of-the-grid.aspx
http://www.telerik.com/community/forums/silverlight/gridview/urgent-extra-column-in-the-radgrid-grid-loosing-out-horizontal-scroll.aspx
http://www.telerik.com/community/forums/silverlight/gridview/upgrading-from-q2-2009-to-q1-2010-empty-column.aspx
http://www.telerik.com/community/forums/silverlight/gridview/grid-view-100-and-autoformatting-columns.aspx
http://www.telerik.com/community/forums/silverlight/gridview/column-width-fit-to-gridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/resizing-columns.aspx
http://www.telerik.com/community/forums/silverlight/gridview/one-more-column-problem.aspx
http://www.telerik.com/community/forums/silverlight/gridview/also-disable-the-space-not-used-by-the-columns.aspx
http://www.telerik.com/community/forums/silverlight/gridview/rendering-issue-for-column-having-width-and-resize-textwraping-enabled.aspx
http://www.telerik.com/community/forums/silverlight/gridview/how-to-set-gridviewdatacolumn-width-to-fill.aspx
http://www.telerik.com/community/forums/silverlight/gridview/how-to-remove-extra-column.aspx
etc
The other reason the width="*" is not viable is if the user re-orders the column then this "*" size is lost on the new last column, and shrinks the column that it was applied to to 0px wide.
This is quite obviously an issue for most users here and a constant complaint from my QA team and our clients.
I know there is the ability to set the width to "*" but then if the data is too wide for the grid, scrolling to the last column makes the column 0px (as it is the available space left). Also if we autogenerate columns then it is not practical to have this per-column XAML"fix" as the columns aren't declared in XAML or the ViewModel (MVVM).
This seems to be an issue for many users! Here are some of the links I've found on your forums
http://www.telerik.com/community/forums/silverlight/gridview/empty-column-always-added-as-the-last-column-in-radgridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/extend-last-column.aspx
http://www.telerik.com/community/forums/silverlight/gridview/scrollbar-missing-when-last-column-width-is-set-to.aspx
http://www.telerik.com/community/forums/silverlight/gridview/remove-the-last-null-column.aspx
http://www.telerik.com/community/forums/silverlight/gridview/gettting-extra-column-in-radgridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/extra-columns-generated.aspx
http://www.telerik.com/community/forums/silverlight/gridview/column-auto-width-issue.aspx
http://www.telerik.com/community/forums/silverlight/gridview/extra-column-at-the-end-of-the-grid.aspx
http://www.telerik.com/community/forums/silverlight/gridview/urgent-extra-column-in-the-radgrid-grid-loosing-out-horizontal-scroll.aspx
http://www.telerik.com/community/forums/silverlight/gridview/upgrading-from-q2-2009-to-q1-2010-empty-column.aspx
http://www.telerik.com/community/forums/silverlight/gridview/grid-view-100-and-autoformatting-columns.aspx
http://www.telerik.com/community/forums/silverlight/gridview/column-width-fit-to-gridview.aspx
http://www.telerik.com/community/forums/silverlight/gridview/resizing-columns.aspx
http://www.telerik.com/community/forums/silverlight/gridview/one-more-column-problem.aspx
http://www.telerik.com/community/forums/silverlight/gridview/also-disable-the-space-not-used-by-the-columns.aspx
http://www.telerik.com/community/forums/silverlight/gridview/rendering-issue-for-column-having-width-and-resize-textwraping-enabled.aspx
http://www.telerik.com/community/forums/silverlight/gridview/how-to-set-gridviewdatacolumn-width-to-fill.aspx
http://www.telerik.com/community/forums/silverlight/gridview/how-to-remove-extra-column.aspx
etc
The other reason the width="*" is not viable is if the user re-orders the column then this "*" size is lost on the new last column, and shrinks the column that it was applied to to 0px wide.
This is quite obviously an issue for most users here and a constant complaint from my QA team and our clients.