
Maciej Czerwiakowski
Top achievements
Rank 1
Maciej Czerwiakowski
asked on 04 Jan 2010, 08:58 AM
Hi,
How can I align results of aggregated functions to columns in table? In my particular case I have GridView with columns for each hour (H1-H24) and few other columns like City, Country, etc. User is able to group data by City and Country column. When grouping is on I would like to display in group header result of aggregated sum function fore each hour column H1-H24, and I have to huge problems:
How can I solve this two problems?
Regards,
MC
How can I align results of aggregated functions to columns in table? In my particular case I have GridView with columns for each hour (H1-H24) and few other columns like City, Country, etc. User is able to group data by City and Country column. When grouping is on I would like to display in group header result of aggregated sum function fore each hour column H1-H24, and I have to huge problems:
- Results width is much bigger then whole GridView width.
- Results aren't aligned with related columns in GridView.
How can I solve this two problems?
Regards,
MC
5 Answers, 1 is accepted
0
Hi Maciej,
Currently there is no built-in way to achieve your requirements. There are workaround ways to implement something similar using GridViewFooterRow in the group header, but they are very limited.
Regards,
Stefan Dobrev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Currently there is no built-in way to achieve your requirements. There are workaround ways to implement something similar using GridViewFooterRow in the group header, but they are very limited.
Regards,
Stefan Dobrev
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0

Maciej Czerwiakowski
Top achievements
Rank 1
answered on 08 Jan 2010, 06:50 AM
Hi Stefan,
Could you tell me what kind of workaround and related limitations we are talking about? I would be appreciate for any example. Frankly speaking this is key feature in one of our software module and I don`t want to change controls provider because of this.
BTW: Are you going to implement any mechanisms to achieve this?
Regards,
MC
Could you tell me what kind of workaround and related limitations we are talking about? I would be appreciate for any example. Frankly speaking this is key feature in one of our software module and I don`t want to change controls provider because of this.
BTW: Are you going to implement any mechanisms to achieve this?
Regards,
MC
0
Hi Maciej,
You can get the child grid header cells and bind Width property to relative parent column ActualWidth however currently this will not work correctly during column resize. Once we fix this will post an example.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can get the child grid header cells and bind Width property to relative parent column ActualWidth however currently this will not work correctly during column resize. Once we fix this will post an example.
Regards,
Vlad
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0

Dirk Liebich
Top achievements
Rank 1
answered on 31 Oct 2011, 11:45 PM
Could we get a code example for what you're talking about here?
0
Hello Dirk Liebich,
Maya
the Telerik team
I have just replied to the other forum thread you posted on the same topic and attached a sample project illustrating the above-mentioned workaround.
Let me know in case you need any further assistance.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>