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

[Solved] Grid Within a Grid not rendering rows when there is a lot of rows

5 Answers 128 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.
Dameion Bryan
Top achievements
Rank 1
Dameion Bryan asked on 04 Sep 2010, 12:11 AM
I am not able to get rows within a HierarchChildTemplate to display when the number of rows in the collection being returned is large.  When I temporarily change the code to return a small set of rows it works just fine.  I have a need to display 1000's of rows, and they just never display.  I have looked the the demo online of the grid that binds 1M rows, and I have made sure that the properties of my grids are the exact same as that for testing purposes, but still no luck.  Theis gird is on a RadTabItem, and there are no ScrollViewers, etc. on this tab.

This is the Xaml of the grid within grid.

<telerikGridView:RadGridView 
    x:Name="SourceCodeGridView" Margin="0" Background="#D1CECB"     
    ItemsSource="{Binding SourceCodeRows}"
    SelectedItem="{Binding SelectedSourceCodeRow, Mode=TwoWay}"
    AutoGenerateColumns="False" ScrollMode="Deferred" IsReadOnly="True"  DataLoadMode="Asynchronous" Height="400">
    <telerikGridView:RadGridView.Columns>
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Account" DataMemberBinding="{Binding Account}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Division Id" DataMemberBinding="{Binding DivisionId}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Division Name" DataMemberBinding="{Binding DivisionName}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Company" DataMemberBinding="{Binding Company}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Company Name" DataMemberBinding="{Binding CompanyName}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Amount" DataMemberBinding="{Binding Amount}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Source Code" DataMemberBinding="{Binding SourceCode}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Posting Date" DataMemberBinding="{Binding PostingDate}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Eff. Date" DataMemberBinding="{Binding EffectiveDate}" />
        <telerikGridView:GridViewDataColumn HeaderTextAlignment="Center" IsReadOnly="True" Header="Update Date" DataMemberBinding="{Binding UpdateDate}" />
    </telerikGridView:RadGridView.Columns>

    <telerikGridView:RadGridView.ChildTableDefinitions>
        <telerikGridView:GridViewTableDefinition x:Name="SubSystemTableDefinition"></telerikGridView:GridViewTableDefinition>
    </telerikGridView:RadGridView.ChildTableDefinitions>

    <telerikGridView:RadGridView.HierarchyChildTemplate>
        <DataTemplate>
            <Border Background="#B3B1B3">
                <toolkit:BusyIndicator 
                        IsBusy="{Binding LoadingSourceCodeTrans}" OverlayStyle="{StaticResource TransparentProgressStyle}" 
                        BusyContent="Loading Source Code Transactions...">

                <telerikGridView:RadGridView 
                         x:Name="SubSystemGridView" ScrollMode="Deferred"  IsReadOnly="True" AutoGenerateColumns="False"
                         ItemsSource="{Binding SourceCodeTranRows}" DataLoadMode="Asynchronous" Background="#D1CECB" >
                    <telerikGridView:RadGridView.Columns>
                        <telerikGridView:GridViewDataColumn Header="Account" DataMemberBinding="{Binding Account}" />
                        <telerikGridView:GridViewDataColumn Header="Account Unit" DataMemberBinding="{Binding AccountUnitId}" />
                        <telerikGridView:GridViewDataColumn Header="Base Amount" DataMemberBinding="{Binding BaseAmount}" />
                        <telerikGridView:GridViewDataColumn Header="Company" DataMemberBinding="{Binding Company}" />
                        <telerikGridView:GridViewDataColumn Header="Control Grp" DataMemberBinding="{Binding ControlGroupNumber}" />
                        <telerikGridView:GridViewDataColumn Header="JE Type" DataMemberBinding="{Binding JeTypeCode}" />
                        <telerikGridView:GridViewDataColumn Header="Line Number" DataMemberBinding="{Binding LineNumber}" />
                        <telerikGridView:GridViewDataColumn Header="Reference Desc" DataMemberBinding="{Binding ReferenceDescription}" />
                        <telerikGridView:GridViewDataColumn Header="System Code" DataMemberBinding="{Binding SystemCode}" />
                        <telerikGridView:GridViewDataColumn Header="System Date" DataMemberBinding="{Binding SystemDate}" />
                        <telerikGridView:GridViewDataColumn Header="Trans Amount" DataMemberBinding="{Binding TransactionAmount}" />
                        <telerikGridView:GridViewDataColumn Header="Trans Desc" DataMemberBinding="{Binding TransactionDescription}" />
                    </telerikGridView:RadGridView.Columns>
                </telerikGridView:RadGridView>
                </toolkit:BusyIndicator>
            </Border>
        </DataTemplate>
       </telerikGridView:RadGridView.HierarchyChildTemplate>
</telerikGridView:RadGridView>

5 Answers, 1 is accepted

Sort by
0
Dameion Bryan
Top achievements
Rank 1
answered on 06 Sep 2010, 07:39 PM
Anyone from Telerik have thoughts on this?
0
Joachim
Top achievements
Rank 1
answered on 08 Sep 2010, 01:43 PM
Hello,

I'm confronting the same problem. I need to display 10000's of rows within a HierachiChildTemplate  and they never display too...
My grid is just on a RadTabItem too.
0
Milan
Telerik team
answered on 09 Sep 2010, 09:30 AM

Hello,

I tried to reproduce the issues but I was unable to do so. I have attached the test application that I have used. Can you reproduce the issues with this application?

Could you please try our latest Internal Build which contains several fixed that might be related to the problems that you are experiencing. You could also try setting explicit Height on the RadGridView that is defined in HierarchyChildTemplate - this is usually a good practice since it will allow all child grids to utilize our virtualization mechanism. 

If none of the above suggestions help you solve the problems we would really appreciate it if you can send us a sample application that demonstrates the mentioned problems.

Thank you for your time.


Best wishes,
Milan
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
0
Joachim
Top achievements
Rank 1
answered on 09 Sep 2010, 10:13 AM

Thank you Milan for your response.
With your help, it works for me with the latest build and setting the property Height of the RadGridView in order to enable Virtulization for the child grid.

But as you can see in your test application there are some performances issues when you are using the grouping feature with a lot of row.

Is there any good practice when you use the Grouping feature with a lot of data ?

Thank again,

Joachim.

0
Milan
Telerik team
answered on 10 Sep 2010, 01:07 PM
Hello JOACHIM,

I didn't notice any performance problems with grouping. Could you elaborate on this issue? Which column are you grouping by? Are you grouping the a child or the parent grid?

Best wishes,
Milan
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
Dameion Bryan
Top achievements
Rank 1
Answers by
Dameion Bryan
Top achievements
Rank 1
Joachim
Top achievements
Rank 1
Milan
Telerik team
Share this question
or