HI ive got the following grid made with kendo UI.
But how can I get the totals ? like shown in the picture below ?
here is my kendo Grid :
- <div class="row">
- <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
- <h4>Organisatiebreed</h4>
- @(Html.Kendo().Grid<OrderLine>()
- .HtmlAttributes(new { @class = "table-responsive" })
- .Name("OrderLinesGrid")
- .Selectable(s => s.Enabled(false))
- .Reorderable(r => r.Columns(false))
- .Resizable(r => r.Columns(true))
- .Scrollable(s => s.Height("auto").Enabled(false))
- .Sortable(s => s.Enabled(false))
- .Pageable(p => p.Enabled(false))
- .Filterable(f => f.Enabled(false))
- .BindTo(Model.OrderLines.Where(x => x.LocationCode == null))
- .Columns(columns =>
- {
- columns
- .Bound(c => c.NrOfUnits);
- columns
- .Bound(c => c.ProductCode);
- columns
- .Bound(c => c.Description);
- columns
- .Bound(c => c.NrcPerUnit)
- .Template(f => string.Format("<div style=\"text-align: right\">€ {0:n2}</div>", f.NrcPerUnit));
- columns
- .Template(f => string.Format("<div style=\"text-align: right\">€ {0:n2}</div>", f.NrOfUnits * f.NrcPerUnit))
- .Title("Totaal");
- columns
- .Bound(c => c.MrcPerUnit)
- .Template(f => string.Format("<div style=\"text-align: right\">€ {0:n2}</div>", f.MrcPerUnit));
- columns
- .Template(f => string.Format("<div style=\"text-align: right\">€ {0:n2}</div>", f.NrOfUnits * f.MrcPerUnit))
- .Title("Totaal p/m");
- })
- )
- </div>
- </div>
thnks guys