or
window.onload = function () { $("#vertical").css("height", $(window).height());};
columns.Bound(n => n.IsEnabled) .Width(100) .ClientTemplate( "# if (IsEnabled) { #" + "Yes" + "# } else { #" + "No" + "#}#");<script type="text/x-kendo-tmpl" id="template"> <div class="product"> <img src="@Url.Content("/")${ImagePath}.jpg" alt="${Name} image" /> <h3>${Name}</h3> <dl> <dt>Price:</dt> <dd>${kendo.toString(Price, "c")}</dd> <dt><input type="button" value="Remove"/></dt> </dl> </div> <div> <h3>Total price: ?????</h3> </div></script>@(Html.Kendo().ListView<SixthCoffee.Web.ViewModels.CartItem>() .Name("CartList") .TagName("div") .ClientTemplateId("template") .DataSource(dataSource => { dataSource.Read(read => read.Action("AjaxCartGrid_Read", "MenuSurface")); dataSource.Aggregates(aggregates => { aggregates.Add(s => s.TotalPrice).Sum(); }); }) )