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

ListView GroupHeaderTemplate - aggregates?

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 2
Erik asked on 30 Sep 2015, 10:31 AM

Is it possible to do aggregates in a ListView's GroupHeaderTemplate?

Consider a POCO like:

public class ProductSales

{

     public string Category {get; set;}

     public string ProductName {get;set;}

     public int QtySold {get;set;}

     public decimal SoldAmt {get;set;}

}

And then you want to show a list of those items in a ListView, grouped by Category.  You might want to include a sum of both the QtySold and SoldAmt properties in the group header, and maybe even a count of the ProductName values. 

Is this possible?

 

Thanks -

Erik

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 05 Oct 2015, 08:25 AM
Hi Erik,

Currently this feature is not supported by ListView. However, as it is feature that the control can benefit in various scenarios I have logged it as feature request in our portal where you can track its progress - http://feedback.telerik.com/Project/168/Feedback/Details/171171-listview-aggregates.

I have also updated your telerik point accordingly.

Regards,
Tsvyatko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Erik
Top achievements
Rank 2
Answers by
Tsvyatko
Telerik team
Share this question
or