@using Telerik.Web.Mvc.UI @{ var gridPageSize = EngineContext.Current.Resolve().GridPageSize; //page title ViewBag.Title = T("Admin.CurrentWishlists").Text; } @using (Html.BeginForm()) {
@T("Admin.CurrentWishlists")
@(Html.Telerik().Grid() .Name("carts-grid") .Columns(columns => { columns.Bound(x => x.CustomerId) .Template(x => Html.ActionLink(x.CustomerEmail, "Edit", "Customer", new { id = x.CustomerId }, new { })) .ClientTemplate("\"><#= CustomerEmail #>"); columns.Bound(x => x.TotalItems).Width(100); }) .DetailView(details => details.ClientTemplate( Html.Telerik().Grid() .Name("cartitems-grid-<#= CustomerId #>") .Columns(columns => { columns.Bound(sci => sci.ProductName) .Template(x => @Html.LabeledProductName(x.ProductId, x.ProductName, x.ProductTypeName, x.ProductTypeLabelHint)) .ClientTemplate(@Html.LabeledProductName("ProductId", "ProductName")); columns.Bound(sci => sci.Quantity).Width(100); columns.Bound(sci => sci.UnitPrice).Width(100); columns.Bound(sci => sci.Total).Width(100); columns.Bound(sci => sci.Store).Width(150); columns.Bound(sci => sci.UpdatedOn).Width(100); }) .DataBinding(dataBinding => dataBinding.Ajax() .Select("GetWishlistDetails", "ShoppingCart", new { customerId = "<#= CustomerId #>" })) .ToHtmlString() ) ) .Pageable(settings => settings.PageSize(gridPageSize).Position(GridPagerPosition.Both)) .DataBinding(dataBinding => dataBinding.Ajax().Select("CurrentWishlists", "ShoppingCart")) .PreserveGridState() .EnableCustomBinding(true))
}