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

ShowColumnFooters in hierarchical GridView

3 Answers 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tatu Nokelainen
Top achievements
Rank 1
Tatu Nokelainen asked on 02 Mar 2010, 08:25 AM
Hello,

Is it possible to show column footers for hierarchical data?

Thanks for advance,
Tatu

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 02 Mar 2010, 08:35 AM
Hello Tatu,

You can customize child grids using HierarchyChildTemplate or DataLoading event.

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.
0
Tatu Nokelainen
Top achievements
Rank 1
answered on 03 Mar 2010, 09:05 AM
Hi again,

Now column footers show just like they should but i'm not able to add aggregate functions to that in code behind. Can you point me out with this also. In dataloading event there is no columns ready for sub -table and I do not find any other event to do that.

RESOLVED:
Here is what I did:
XAML:
<telerik:RadGridView.HierarchyChildTemplate> 
                <DataTemplate> 
                    <telerik:RadGridView ShowColumnFooters="True" AutoGenerateColumns="True"   
                                         ItemsSource="{Binding [OtherTable]}" DataLoaded="radGridView1_SubDataLoaded" > 
                    </telerik:RadGridView> 
                </DataTemplate> 
            </telerik:RadGridView.HierarchyChildTemplate> 
and aggregate functions are added in event radGridView1_SubDataLoaded

BR,
Tatu
0
Vlad
Telerik team
answered on 04 Mar 2010, 07:17 AM
Hello Tatu,

You can add your own columns in this event or use AutoGeneratingColumn event of the child grid to customize your child grid auto-generated columns. Since you already have defined HierarchyChildTemplate you can declare your columns directly with desired properties in XAML.

All the best,
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
Tatu Nokelainen
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tatu Nokelainen
Top achievements
Rank 1
Share this question
or