Child/Detail grid column aggregate SUM coming as 0

0 Answers 3 Views
Grid
Chandan
Top achievements
Rank 1
Chandan asked on 17 Sep 2025, 04:43 AM
Hi Team,

I want to show the sum of a decimal data type column at the bottom of child grid column in kendo ui mvc 4?
I am using below approach but always getting the sum as 0. Please guide on this.

.Columns(columns =>
   {
      //..
       columns.Bound(p => p.amount)
           .HeaderTemplate("Amount")
           .ClientFooterTemplate("Sum: \\#=sum\\# ");
      //..
   })
.DataSource(dataSource => dataSource
            .Ajax()
            .Aggregates(aggregates => {
                aggregates.Add(p => p.amount).Sum();
            })
            .Read(read => read.Action("Invoice_Read", "ProjectsInvoice", new { projectCode = "#=projectCode#" }))
        
             
        )

No answers yet. Maybe you can help?

Tags
Grid
Asked by
Chandan
Top achievements
Rank 1
Share this question
or