Hi all,
I'm building a grid where I group my data by 3 columns, but I show the sum of another column as ClientGroupFooterTemplate. Here some code snippet
Inside data source:
.Group(gr =>
{
gr.Add(p=> p.Finality);
gr.Add(p=> p.Task);
gr.Add(p=> p.Session);
}
)
.Aggregates(aggr =>
{
aggr.Add(p => p.Duration).Sum();
})
Inside .Columns
but when grid displays the data it shows the Sum at the end of every grouping (Finality, Task and Session)
I want to diplay it only for Session, how can I accomplish that?
I'm building a grid where I group my data by 3 columns, but I show the sum of another column as ClientGroupFooterTemplate. Here some code snippet
Inside data source:
.Group(gr =>
{
gr.Add(p=> p.Finality);
gr.Add(p=> p.Task);
gr.Add(p=> p.Session);
}
)
.Aggregates(aggr =>
{
aggr.Add(p => p.Duration).Sum();
})
Inside .Columns
//previous columns code
columns.Bound(c => c.Duration).Title("Duration (h)").Width(150).ClientGroupFooterTemplate("Sum: #=sum#");
//following columns code
but when grid displays the data it shows the Sum at the end of every grouping (Finality, Task and Session)
I want to diplay it only for Session, how can I accomplish that?