Hello, Nicola,
We always strive to address the issues that come from our clients. This issue is already addressed in our internal issue tracking system and should be planned soon. However, I can't give you an exact time frame when a fix will be introduced. Please click the Follow button in order to get notified once any status changes occur.
Meanwhile, feel free to use the suggested here workaround.
Should you have other questions please let me know.
Regards,
Nadya
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Is it possible to know when this problem will be solved?
Thank You
Hello, Nicola,
To work around this issue, you can create a custom GridViewSummaryItem and override its Evaluate method. Thus, you can write your own logic for summary item evaluation:
' CUSTOM SUMMARY ITEMS
Public Class CustomSummaryItem
Inherits GridViewSummaryItem
Public Sub New(ByVal name As String, ByVal formatString As String, ByVal aggregate As GridAggregateFunction)
MyBase.New(name, formatString, aggregate)
End Sub
Public Overrides Function Evaluate(ByVal row As IHierarchicalRow) As Object
Dim total As Decimal = 0
For Each childRow As GridViewRowInfo In row.ChildRows
Dim groupRow As GridViewGroupRowInfo = TryCast(childRow, GridViewGroupRowInfo)
Dim dataRow As GridViewDataRowInfo = TryCast(childRow, GridViewDataRowInfo)
If groupRow IsNot Nothing Then
For Each row1 As GridViewRowInfo In groupRow.ChildRows
total += (row1.Cells("TOT1").Value)
Next row1
ElseIf dataRow IsNot Nothing Then
total += dataRow.Cells("TOT1").Value
End If
Next childRow
Return total
End Function
End Class
Public Class CustomSummaryCountItem
Inherits GridViewSummaryItem
Public Sub New(ByVal name As String, ByVal formatString As String, ByVal aggregate As GridAggregateFunction)
MyBase.New(name, formatString, aggregate)
End Sub
Public Overrides Function Evaluate(ByVal row As IHierarchicalRow) As Object
Dim total As Decimal = 0
For Each childRow As GridViewRowInfo In row.ChildRows
Dim groupRow As GridViewGroupRowInfo = TryCast(childRow, GridViewGroupRowInfo)
Dim dataRow As GridViewDataRowInfo = TryCast(childRow, GridViewDataRowInfo)
If groupRow IsNot Nothing Then
For Each row1 As GridViewRowInfo In groupRow.ChildRows
total += 1
Next row1
ElseIf dataRow IsNot Nothing Then
total += 1
End If
Next childRow
Return total
End Function
End Class
I hope this helps.
Regards,
Nadya
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.