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
Is it possible to show column footers for hierarchical data?
Thanks for advance,
Tatu
3 Answers, 1 is accepted
0
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.
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:
and aggregate functions are added in event radGridView1_SubDataLoaded
BR,
Tatu
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> |
BR,
Tatu
0
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.
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.