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

Child Grid not honoring HierarchyChildTemplate settings

1 Answer 42 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 27 Apr 2010, 11:14 PM
I have a child grid as below, but it doesn't honor Widths set to the columns in Xaml.  Also, even though I've set the FrozenColumnCount, when I scroll left or right, the entire child table scrolls left or right and the columns that are supposed to be frozen scroll as well.

<telerik:RadGridView.HierarchyChildTemplate>
                        <DataTemplate>
                            <telerik:RadGridView x:Name="RadGridView1" CanUserFreezeColumns="True" CanUserInsertRows="False"
                                                 CanUserReorderColumns="False" CanUserResizeColumns="True" FrozenColumnCount="8" ShowColumnHeaders="True" IsFilteringAllowed="False"
                                                 AutoGenerateColumns="False" ItemsSource="{Binding SkuForecastArchiveData}"  ShowGroupPanel="False" IsReadOnly="True">
                                <telerik:RadGridView.Columns>
                                    <telerik:GridViewDataColumn Header="Sku" DataMemberBinding="{Binding Sku}" Width="48" />
...

1 Answer, 1 is accepted

Sort by
0
Yordanka
Telerik team
answered on 28 Apr 2010, 03:51 PM
Hi David,

Unfortunately, the issue with HierarchyChildTemplate's Column Width is definitely a bug. We will do our best to fix it. I have created PITS issue (1978) where you can track its status.
If it is possible for you, we may suggest you two workarounds - first of them is to use RowDetailsTemplate with GridViewToggleRowDetailsColumn . The second one is to turn on AutoGenerateColumns="True" and on AutoGeneratingColumn event to set e.Column.Width = 48;

About your second issue with FrozenColunmsCount - there is no way scroll of the Parent grid to affect the Child grid. In fact they are two separate grids, so if you have horizontal scroll on the child grid then scrolling for frozen columns will be working correctly.

Thank you for your feedback. I have updated your Telerik points.

All the best,
Yordanka
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Yordanka
Telerik team
Share this question
or