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

Performance issue when scrolling with radgridview and expanded Child tables

1 Answer 123 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Build-dude
Top achievements
Rank 1
Build-dude asked on 02 Nov 2010, 03:44 PM
I am seeing some really terrible performance when scrolling the grid control and coming to the child grids.  Any suggestions on what I could do to make this scroll as well as the sections with out children?  I load my data and force all of the children to be expanded.  So there should be no computation from my code involved with this issue.( currently using q3 2010 beta )

   <telerik:RadGridView 
ItemsSource="{Binding Fields}" 
x:Name="FieldGridView" 
AutoGenerateColumns="False" 
CanUserInsertRows="False" 
CanUserDeleteRows="False" 
CanUserReorderColumns="False" 
CanUserResizeColumns="False" 
CanUserSelect="True" 
CanUserSortColumns="False" 
ClipboardCopyMode="Cells" 
ShowGroupPanel="False" 
SelectionMode="Extended" 
SelectionUnit="Cell" 
RowIndicatorVisibility="Collapsed" 
ColumnWidth="*" 
GridLinesVisibility="Horizontal" 
EnableColumnVirtualization="True" 
            RowDetailsVisibilityMode="Collapsed" 


ShowColumnHeaders="False"  
            RowLoaded="FieldGridViewChild_RowLoaded"

>
         <telerik:RadGridView.Background>
         <SolidColorBrush/>
         </telerik:RadGridView.Background>
            <telerik:RadGridView.ChildTableDefinitions>
                <telerik:GridViewTableDefinition />
            </telerik:RadGridView.ChildTableDefinitions>

            <telerik:RadGridView.HierarchyChildTemplate>
                <DataTemplate>
                    <telerik:RadGridView 
                        ItemsSource="{Binding Fields}"  
            x:Name="FieldGridViewChild"  
            AutoGenerateColumns="False" 
            CanUserInsertRows="False"  
            CanUserDeleteRows="False"  
            CanUserReorderColumns="False"  
            CanUserResizeColumns="False"  
            CanUserSelect="True"  
            CanUserSortColumns="False" 
            ClipboardCopyMode="Cells" 
            ShowGroupPanel="False" 
            SelectionMode= "Extended" 
            SelectionUnit="Cell" 
                        RowIndicatorVisibility="Collapsed" 
            ColumnWidth="*" 
            GridLinesVisibility="Horizontal" 
            EnableColumnVirtualization="True" 


            ShowColumnHeaders="False" 
                        >
                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn 
                                Header="Id"
                    DataMemberBinding="{Binding ID}"  
                    DataFormatString=""  
                    Width="40"  
                    IsReadOnly="True"
                    Background="#E5E5E5"
                                TextAlignment="Right"  />
                            <telerik:GridViewDataColumn
                                Width="*"  
                                
                                TextWrapping="Wrap"
                                DataMemberBinding="{Binding Value}" />
                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>
                </DataTemplate>
            </telerik:RadGridView.HierarchyChildTemplate>



            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn
Header="Id" 
DataMemberBinding="{Binding ID}" 
DataFormatString="" 
Width="41" TextAlignment="Right"
IsReadOnly="True"  
Background="LightGray" />
                <telerik:GridViewDataColumn
Width="*" 
TextTrimming="None"
                    TextWrapping="Wrap"
DataMemberBinding="{Binding Value}" />
            </telerik:RadGridView.Columns>

        </telerik:RadGridView>

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Nov 2010, 03:57 PM
Hi,

 Please define Height for the child grid since HierarchyChildTemplate will measure by default controls with infinity. 

Best wishes,
Vlad
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
Build-dude
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or