Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

telerik mvc grid round sum result

@(Html.Kendo().Grid<Model>()
	.Name("Table")
	.Columns(columns => {
		columns.Bound(o => o.Total)
			.ClientFooterTemplate("$#= kendo.toString(sum, '0.00') #");
	})
	.DataSource(dataSource => dataSource
		.Ajax()
		.ServerOperation(false)
		.Aggregates(a =>
		{
			a.Add(y => y.Total).Sum();
		})
		.Read(read => read.Action("Function", "Controller").Type(HttpVerbs.Get))
		.PageSize(5))
)
Source by www.telerik.com #
 
PREVIOUS NEXT
Tagged: #telerik #mvc #grid #sum #result
ADD COMMENT
Topic
Name
6+2 =