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

Show aggregates aligned with columns

39 Answers 357 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 11 Nov 2010, 05:24 PM
Hi,

We've recently purchased the telerik package and I was playing around with the GridView. One feature that is king for our users is to be able to aggregate data on the grids freely (the users want to drag columns around themselves to create the groupings). I managed to do this following one of your demos but I can't figure out how to get the aggregated values to be aligned to their respective columns (this is a must for our users).

Can you please provide me with a working example on how to achieve this?

Thanks,

Marcelo

39 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 11 Nov 2010, 05:30 PM
Hello Marcelo,

 This is by default for the footers - please check this demo for more info:
http://demos.telerik.com/silverlight/#GridView/Totals

Greetings,
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
Marcelo
Top achievements
Rank 1
answered on 11 Nov 2010, 05:36 PM
thanks for your quick reply.

right, I see what you mean, but I don't want a footer. I want the actual aggregates for each row displayed correctly aligned. The alignment of the footer would be fine, but I want it with the totals of the grouping headers (the totals in the footer are grand totals, that's not what I need).

Is there any way to achieve this?

I tried the sample project on this thread but it doesn't work well when you have two or more columns grouped (it works fine for one though).

When you have two or more and you start expanding the results you get the totals as footers instead of headers. I'm attaching a screenshot for yor reference.
0
Maya
Telerik team
answered on 12 Nov 2010, 09:37 AM
Hi Marcelo,

Unfortunately, for the time being the provided workaround in the link you posted in the only possible way for achieving this behavior. However, we do consider implementing this feature our-of-the-box so that you can use it natively. Most probably this functionality will be available in our Q1 2011 release.
 

Sincerely yours,
Maya
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
Marcelo
Top achievements
Rank 1
answered on 12 Nov 2010, 10:11 AM
It's a bit dissapointing to be honest that such a basic feature is not currently present. I can only blame myself for not having checked that this feature worked before buying the product but honestly the gridview is useless for us without it.

What is the ETA for the 2011Q1 release?

Thanks
0
Marcelo
Top achievements
Rank 1
answered on 12 Nov 2010, 11:24 AM
Can the workaround provided in the sample project get fixed to work correctly for groupings of 2 or more levels please? I would be happy to temporarily use this workaround until the feature is properly implemented, but it currently works only for 1 grouping level.

Thanks
0
Hristo
Telerik team
answered on 12 Nov 2010, 04:58 PM
Hi Marcelo,

Unfortunately the proposed workaround can work only for the 1st level grouping . This is the best result with the current implementation. This feature is with high priority for the Q1 2011 release which will be out in March next year.

Excuse us for the inconvenience caused.

Kind regards,
Hristo
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
Marcelo
Top achievements
Rank 1
answered on 12 Nov 2010, 05:04 PM
Is this feature supported in the WPF version of GridView?
0
Maya
Telerik team
answered on 12 Nov 2010, 05:40 PM
Hi Marcelo,

This feature is not available for our RadGridView for WPF either. However, once we introduce the feature out-of-the-box, it will be included for both platforms - Silverlight and WPF.
 

Sincerely yours,
Maya
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
Marcelo
Top achievements
Rank 1
answered on 12 Nov 2010, 05:42 PM
Thanks
0
Marcelo
Top achievements
Rank 1
answered on 17 Dec 2010, 11:57 AM
Where can I track the progress of this feature? I couldn't find it in PITS (http://www.telerik.com/support/pits.aspx#/public/wpf/2011-q1)
0
Maya
Telerik team
answered on 20 Dec 2010, 11:14 AM
Hi Marcelo,

You may follow the progress of the feature request and vote for it here.
 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Marcelo
Top achievements
Rank 1
answered on 20 Dec 2010, 11:23 AM
Thanks for that.

The feature shows as part of the Silverlight packaged. Will it be available for WPF as well?
0
Marcelo
Top achievements
Rank 1
answered on 20 Dec 2010, 11:25 AM
Also, you said earlier that it was scheduled for 2011Q1, however it currently shows as unscheduled. Can you please update its status? Thanks
0
Maya
Telerik team
answered on 20 Dec 2010, 11:26 AM
Hello Marcelo,

The feature will be available for both Silverlight and WPF. The progress of the feature for WPF may be followed here.
 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Marcelo
Top achievements
Rank 1
answered on 20 Dec 2010, 11:31 AM
Also, you said earlier that it was scheduled for 2011Q1, however it currently shows as unscheduled. Can you please update its status? Thanks
0
Maya
Telerik team
answered on 23 Dec 2010, 10:00 AM
Hi Marcelo,

Our plans are to include this functionality as soon as possible. However, there are quite many different scenarios to be covered and our intentions are to chose the best approach for the implementation of this feature. Consequently, there is a lot of research and testing to do. 
On the other hand, as our priority is to satisfy as many of our customers' requirements as possible, we do take into consideration the rating of a particular feature request. Thus the higher the rating of this particular one is, the more important is it in our product backlog. So, I would definitely recommend voting for it.
Thank you for your patience and understanding. 
 

Greetings,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Marcelo
Top achievements
Rank 1
answered on 23 Dec 2010, 10:50 AM
Thanks Maya.

I know this is the Silverlight forum, but can you please provide a WPF workaround for this problem in the mean time? I downloaded a Silverlight workaround from another thread (which only works for the first-level, which is better than nothing for now) but it doesn't work in WPF. Are you able to adapt it to work in WPF please? It would be massively helpful to at least have a temporary workaround so that I can show my manager that buying the Telerik package wasn't a total waste of money.

Many thanks again,

Marcelo
0
Maya
Telerik team
answered on 23 Dec 2010, 01:14 PM
Hello Marcelo,

I am sending you the sample project targeting WPF platform. I really hope it helps. In the meantime, please do not hesitate to contact us in case you need any assistance when working with our products.
  

Regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
CarlosLima
Top achievements
Rank 1
answered on 23 Dec 2010, 01:42 PM
We've managed to solve the problem (or at least tried to) by adding a second row to the group bar (based on that sample)
http://www.telerik.com/community/forums/silverlight/gridview/complete-style-and-template-change-help.aspx

This way the footer values don't get mixed with the group header text.

Still has some wicked issue.. sometimes the values in the cells of the first grouped row (when expanded) are missing. Just "ungroup" and "re-group" again and it works. I have asked this on the forum but no reply with a solution yet.


0
Marcelo
Top achievements
Rank 1
answered on 23 Dec 2010, 01:50 PM
Thanks for sharing that David.

If you don't mind could you please vote for this feature? it can be found here: http://www.telerik.com/support/pits.aspx#/public/silverlight/4389

the more people vote for it the more likely it'll be released sooner rather than later. If you know any other users (even within your own company) who are suffering from the same problems please encourage them to vote too.

Would you be able to upload a working sample of your source code?

Thanks!
0
CarlosLima
Top achievements
Rank 1
answered on 23 Dec 2010, 03:04 PM
Sure.
https://www.yousendit.com/download/RlRwSXQwdVU5eFZjR0E9PQ

It's a work in progress to completely redesign the grid's look to be more "clean" (along with the whole site). A lot like the ones at the website www.mint.com.

- Still haven't found how to solve the "horizontal scrool bar" issue (in this case it shows only because of a border...) 
- Still haven't found where to remove the extra bottom line in the group footer
- Still have to do some work on the grid column footer
- Would like to have the column filter icon visible when the values are actually being filtered and it only shows on mouse over or if the column is being sorted

0
Kevin Hendriks
Top achievements
Rank 1
answered on 13 Sep 2011, 01:45 PM
This solution seems to work for me.
I have one question still. In the example provided the colors used are for the black style.
Can I easily let the Controltemple use the Style that is set by the telerik style manager.
0
WILLIAM
Top achievements
Rank 1
answered on 21 Sep 2012, 05:04 PM
Has this feature been implemented yet?  We have the same business requirement.  I have several columns that do Sum calculation.  The Footer shows correctly.  When grouping, the calculations are shown left aligned.  How are users supposed to correlate the value with a column?
0
Vlad
Telerik team
answered on 24 Sep 2012, 05:33 AM
Hello,

Only aggregates in the column footers are associated with columns. Aggregates in the group header are not related to columns in any way - can present completely different information (for example how many items you have in this group) and can vary in numbers (not equal to the columns collection).

Kind regards,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Marcelo
Top achievements
Rank 1
answered on 24 Sep 2012, 08:11 AM
When is this feature going to be implemented? I has plenty of votes now!! Without this feature the grid is useless for any financial application.
0
carlos
Top achievements
Rank 1
answered on 24 Sep 2012, 10:47 AM
It's been almost two years since we started this discussion and so far this issue is still not properly resolved.
It's really easy to understand the problem it causes for finantial analysis just by creating this simple example (we had this situation recently so it's a very real case...):
- Create a gridview with 36 columns where the first 5 are item identifications (name, id, category, etc) and the rest are all diferent types of prices. Now group the table by category (which will create an avg and sum of each price) and try to make a sense of the results... you have to scroll to the far end of the table to find the column name of price 32 and come back to count the items on the bar to find out which price is the n.32... it's a mess and very far from any professional product.

I can't imagine how complicated it might be for telerik to adjust the grid to properly align the contents of the grouped bar to it's "parent" column, but it's a very very very important feature (probably the only thing the control lacks right now) specially because it's the expected behaviour by any common "excel" user that gets very surprised to see what happens when he uses the groupby feature (usually the first words that come out of his mouth are "up's what did I do?").

Attached are images based on the current gridview for silverlight demo of what is showing right now and what everyone here is demanding.

Please keep us updated like you did on the pivotgrid and together we can help you set priorities for the grid's development.

Thanks,
Carlos
0
Vlad
Telerik team
answered on 24 Sep 2012, 11:33 AM
Hello,

 This feature will be part of our upcoming Q3 2012 release (middle of October). It will not look exactly like the image you've attached since there is no way to have both group header and aligned column aggregates on the same row however you will be able to show additional row under the group header with aligned aggregates. 

I've attached a screenshot for more info. 

Greetings,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Kevin Hendriks
Top achievements
Rank 1
answered on 24 Sep 2012, 11:43 AM
Hello,

It IS possible to have it in the same row. see attached image. The solutions for it is even in this thread. When a row is collapsed it is on the header when it is expanded it is below it. Current problem we only have (as you can see) is that we do not have the themed colours on it. Have the sums on the grouped rows is really an requirement because we can have dozens of rows in a grid depending on how it is grouped.
0
Vlad
Telerik team
answered on 24 Sep 2012, 11:47 AM
Hi,

 In this case what do you show in the first cell? Group header? First column aggregate result?

All the best,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Kevin Hendriks
Top achievements
Rank 1
answered on 24 Sep 2012, 11:58 AM
Hi,

The first cell shows the Value of the Grouping.
In my example I have selected the customer to group by. So you see the customers name in the first cell. The other cells that are shown are the aggregations. If I would group by User it would show the username in the first column. I can even make sub groups see example
0
Marcelo
Top achievements
Rank 1
answered on 24 Sep 2012, 12:04 PM
I fully second that - it's exactly how it should work.
0
Vlad
Telerik team
answered on 24 Sep 2012, 12:19 PM
Hi,

 In this case you will unable to show first column aggregate result - not all of our customers will be happy. This leads also to huge breaking change for the group row XAML - definitely not something we would like to introduce.

All the best,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
Kevin Hendriks
Top achievements
Rank 1
answered on 24 Sep 2012, 12:35 PM
It would be nice if we could switch between the two solutions then.
0
carlos
Top achievements
Rank 1
answered on 24 Sep 2012, 01:56 PM
I understand that re-ordering columns (grouped columns show up first then the rest of them) although it would make the information much more easy to read it probably demands complex development and therefore time..

Having that in mind (and leaving that possibility open for a future development) I would propose an alternative that still keeps the information "ordered" but on the correct cells and that I hope it could come as part of the next release ;) :
Based on the image that Vlad posted "Untitled.png":
 - the unit price should be aligned with the unit price column, the three rows (9, 13, 14) should have those values under the column unit price and not on the first cell like it is and it could have the count on the same cell.
- on the cell of the date column it should have both the min and max values and not only on the footer (for the case when the user doesn't want a footer...)

Check the image attached.

This way, although is not perfect, is still more organized and easier to read than the current situation because the cell values on the rows match the columns that they belong to.

Regards,
Carlos
0
carlos
Top achievements
Rank 1
answered on 25 Sep 2012, 10:55 AM
Vlad: Is my proposal viable?

Thanks,
Carlos
0
Vlad
Telerik team
answered on 25 Sep 2012, 12:38 PM
Hi Carlos,

 The situation is a bit more complicated since you can have sub groups as well. In this case the group header and the expand/collapse button are on different indentation while the header aggregates for all groups and sub groups should share the same indentation as columns headers. 

I've attached a screenshot. 

Kind regards,
Vlad
the Telerik team

Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.

0
carlos
Top achievements
Rank 1
answered on 25 Sep 2012, 03:33 PM
Ok. Looking at your example I kind of understand the problem but there are at least two things that I would change:

1 - location of the main information
UNIT PRICE
The information about the count and value on the beggining of the footer should be above "custom footer with aggregates" and not on the beggining of the footer because it doesn't mean anything to the column headers above of where it is located now.
DATE
The information about the count and value on the beggining of the footer should be above "min and max dates" and not on the beggining of the footer because it doesn't mean anything to the column headers above of where it is located now.
IF POSSIBLE
have the grouped value not only on the beggining of the header but also aligned below the colum it relates to...

2 - the group header value should be written on it's original format (I believe this is probably ok on the final product, is just this quick demo that doesn't have this)
ex:  unit price: 18.4 -> $18.40
ex:  date: 4/13/2007 12:00:00AM -> 4/13/2007

Carlos
0
WILLIAM
Top achievements
Rank 1
answered on 19 Dec 2012, 07:42 PM
I'm not sure why this is still an issue.  As others have stated, this seems like simple expected functionality.  Our users have expressed concern and "uber confusion" with the way group totals display.  They have asked that the group totals be removed, leaving the total at the bottom of the grid in place.  I haven't found the property to turn off (not show totals) in the group footer leaving the grand total showing at the bottom.  There is is the "Show Column Footers" properties, but that turns off everything.  Please tell me this is possible.

I've attached a image to show what I'm asking for.

Thanks
JD
0
Vlad
Telerik team
answered on 20 Dec 2012, 07:42 AM
Hello,

 You can check our demo for more info on how to display various aggregates. 

Kind regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Marcelo
Top achievements
Rank 1
Maya
Telerik team
Hristo
Telerik team
CarlosLima
Top achievements
Rank 1
Kevin Hendriks
Top achievements
Rank 1
WILLIAM
Top achievements
Rank 1
carlos
Top achievements
Rank 1
Share this question
or