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

Align aggregated results with related columns

5 Answers 71 Views
GridView
This is a migrated thread and some comments may be shown as answers.
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:

  1. Results width is much bigger then whole GridView width.
  2. Results aren't aligned with related columns in GridView.

How can I solve this two problems?

Regards,
MC

5 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 07 Jan 2010, 11:19 AM
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.
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
0
Vlad
Telerik team
answered on 14 Jan 2010, 07:18 AM
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.
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
Maya
Telerik team
answered on 01 Nov 2011, 07:10 AM
Hello Dirk Liebich,

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.
 

All the best,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Maciej Czerwiakowski
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Maciej Czerwiakowski
Top achievements
Rank 1
Vlad
Telerik team
Dirk Liebich
Top achievements
Rank 1
Maya
Telerik team
Share this question
or