TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Cassie Mod
NA
488
70.5k
get an (extra) row with the totals in Kendo Grid (Kendo UI)
Jul 7 2016 4:59 AM
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
Reply
Answers (
1
)
checkbox checked on edit time .net c#
Can C# code and Java code be written in same project.