This is a migrated thread and some comments may be shown as answers.

[Solved] Multiple grids percentage column bug

1 Answer 104 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
pirobox
Top achievements
Rank 1
pirobox asked on 15 Dec 2009, 10:49 AM
I'm using 2009.3 version and I think I've found a bug with the percentage (Star) width column feature.
When I use only 1 grid, everything works correctly, but if I add a second grid to my xaml (see following code) the second grid doesn't respec percentage widths. Am I doing something wrong? Is there any workaround?

<Grid x:Name="LayoutRoot">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<tkgridview:RadGridView x:Name="Grid1" Grid.Row="0" AutoGenerateColumns="False" >
<tkgridview:RadGridView.Columns>
<tkgridview:GridViewDataColumn Header="Key" DataMemberBinding="{Binding Key}" Width="*"  />
<tkgridview:GridViewDataColumn Header="Value" DataMemberBinding="{Binding Value}" Width="3*" />
</tkgridview:RadGridView.Columns>
</tkgridview:RadGridView>
<tkgridview:RadGridView x:Name="Grid2" Grid.Row="1" AutoGenerateColumns="False" >
<tkgridview:RadGridView.Columns>
<tkgridview:GridViewDataColumn Header="Key" DataMemberBinding="{Binding Key}" Width="*"  />
<tkgridview:GridViewDataColumn Header="Value" DataMemberBinding="{Binding Value}" Width="3*" />
</tkgridview:RadGridView.Columns>
</tkgridview:RadGridView>
</Grid>

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 18 Dec 2009, 08:09 AM
Hi,

 I've just tried this using our latest service pack (Q3 SP1) however the grid worked correctly - please check the attached project for reference.


Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
pirobox
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or