Kendo Grid Aggregate Sum Displaying Empty Footer

I am getting a footer with 0 value from this code. Anyone knows why please?

Thanks

      @(Html.Kendo().Grid(Model).HtmlAttributes(New With {.class = "kendoGrid"}) _
        .Name("ExternalMailInvDetailsGrid") _
        .Columns(Sub(c)
                         c.Bound(Function(p) p.Description)
                         c.Bound(Function(p) p.Quantity)
                         c.Bound(Function(p) p.UnitPrice)
                         c.Bound(Function(p) p.TotalPrice)
                         c.Bound(Function(p) p.GSTPrice).ClientFooterTemplate("#=sum#")

                 End Sub) _
                              .Pageable() _
                              .Selectable(Sub(sel)
                                                  sel.Mode(GridSelectionMode.Single)
                                          End Sub) _
.Scrollable() _
.DataSource(Sub(c)
                    c.Ajax() _
                    .PageSize(8) _
                    .Aggregates(Sub(agg)
                                        'agg.Add(Function(p) p.TotalPrice).Sum()
                                        agg.Add(Function(p) p.GSTPrice).Sum()

                                End Sub) _
                    '.Group(Sub(g)
                    '             g.Add(Function(p) p.TotalPrice)
                    '       End Sub)
            End Sub)
)

`

Answers


You will probably need to define the footer template in .ClientFooterTemplate in columns

you may want to refer to the kendo demo website


by adding another line of code: serveroperation(false) this code somehow magically works now.

I have also received a response from Telerik team and they reckon if i am binding kendo grid with the server side data, then i should use footertemplate instead of clientfootertemplate. Hopefully this will help someone.


Need Your Help

using Windows Media Encoder to record screen

windows screen media capture encoder

Is it easy to write some .Net code to record screen and audio (from computer mic), then output to an wmv file. Any reference code?

JCombobox's popup list is not painted completely

java swing jcombobox paint jinternalframe

I have a JInternalFrame in a JDesktop, and I also have a JComboBox in the internal frame. The problem is shown below.