Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
get an (extra) row with the totals in Kendo Grid (Kendo UI)
Cassie Mod
Jul 7 2016 4:59 AM
221
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
checkbox checked on edit time .net c#
The type 'System.Data.Entity.DbContext' is defined