Child/Detail grid column aggregate SUM coming as 0

1 Answer 8 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#" }))
        
             
        )

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 17 Sep 2025, 08:30 AM

Hello Chandan,

 

Thank you for writing to us.

I have replied to your formal support ticket named:
"Show sum of a column in detail/child grid in kendo ui mvc 4."

Let's continue our discussion there.

 

Regards,
Eyup
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Grid
Asked by
Chandan
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or