The GridView I'm working with usually doesn't fill all available space, so I want to set a column width to * to make sure that it fills all remaining space, however on occasion the * column contains data that is too long and gets clipped. When users resize the column bigger to view the data, they cannot make it small again to view the rest of the data.
Is there a workaround for this? I don't want to use word wrapping.
I'm using RadControls for WPF, v.2011.1.419.40
9 Answers, 1 is accepted
Since you have defined a single star-sized column you would not be able to decrease this column. The only thing you have to do is to add an additional star-size column and everything should work as expected:
<
telerik:RadGridView
x:Name
=
"radGridView"
AutoGenerateColumns
=
"False"
ItemsSource
=
"{Binding Collection}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"OP1"
Width
=
"0.4*"
DataMemberBinding
=
"{Binding Property1}"
/>
<
telerik:GridViewDataColumn
Header
=
"OP2"
Width
=
"100"
DataMemberBinding
=
"{Binding Property1}"
/>
<
telerik:GridViewDataColumn
Header
=
"OP3"
Width
=
"0.2*"
DataMemberBinding
=
"{Binding Property1}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Hope this helps!
Regards,
Vanya Pavlova
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

May you post more info about the grid version you used? I have tested this behavior and everything works fine by my side. Will you please check the attached project and let me know how it differs from yours?
Vanya Pavlova
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

<
telerik:RadGridView
AutoGenerateColumns
=
"False"
ItemsSource
=
"{Binding Collection}"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"100"
DataMemberBinding
=
"{Binding Property2}"
/>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"0.5*"
DataMemberBinding
=
"{Binding Property1}"
/>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"*"
DataMemberBinding
=
"{Binding Property3}"
/>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"Auto"
DataMemberBinding
=
"{Binding Property3}"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
Indeed we are aware of similar issue related to the column's resizing, with Width set to Auto.
For the time being I may suggest you to change the position last column and to combine it in a way similar to this one:
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"Auto"
DataMemberBinding
=
"{Binding Property3}"
/>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"100"
DataMemberBinding
=
"{Binding Property2}"
/>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"0.5*"
DataMemberBinding
=
"{Binding Property1}"
/>
<
telerik:GridViewDataColumn
Header
=
"P1"
Width
=
"*"
DataMemberBinding
=
"{Binding Property3}"
/>
Hope this helps!
Kind regards,
Vanya Pavlova
the Telerik team
Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

For now I just won't use * Columns, but I would appreciate if you fixed this in the future

Is there any update to this issue? Workaround or is there a ticket I can follow to know when this has been fixed?
Thanks in advance,
Chris

It said there was a server error posting... Guess it still posted...
