The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
GTGnanasownthari Thirugnanam Syncfusion Team March 10, 2016 01:55 PM UTC
Hi Marquant,
We are analyzed your query. And you can achieve your requirement “only display the sum of positive values in GridTableSummaryRow” by using the CustomAgreegate like the below code example. C#
publicclass CustomAggregate:ISummaryAggregate
{
public CustomAggregate()
{
}
publicdouble PositiveSummation { get; set; }
public Action<System.Collections.IEnumerable, string, System.ComponentModel.PropertyDescriptor> CalculateAggregateFunc()
{
return (items, property, pd) =>
{
var enumerableItems = items as IEnumerable<OrderInfo>;
foreach(var item in enumerableItems)
{
if(item.Discount>=0)
{
this.PositiveSummation += item.Discount;
}
}
}; }
We have prepared a sample as per your requirement and you can download the same from the below location,