@model BestCustomersReportModel @using Telerik.Web.Mvc.UI
@Html.SmartLabelFor(model => model.StartDate) @Html.EditorFor(model => model.StartDate)
@Html.SmartLabelFor(model => model.EndDate) @Html.EditorFor(model => Model.EndDate)
@Html.SmartLabelFor(model => model.OrderStatusId) @Html.DropDownList("OrderStatusId", Model.AvailableOrderStatuses, T("Admin.Common.All"))
@Html.SmartLabelFor(model => model.PaymentStatusId) @Html.DropDownList("PaymentStatusId", Model.AvailablePaymentStatuses, T("Admin.Common.All"))
@Html.SmartLabelFor(model => model.ShippingStatusId) @Html.DropDownList("ShippingStatusId", Model.AvailableShippingStatuses, T("Admin.Common.All"))
 

@(Html.Telerik().Grid() .Name("best-customers-numberoforders-grid") .ClientEvents(events => events.OnDataBinding("bestCustomersNumberOfOrdersOnDataBinding")) .Columns(columns => { columns.Bound(x => x.OrderTotal) .RightAlign() .Width(160); columns.Bound(x => x.OrderCount) .Centered() .Width(160); columns.Bound(x => x.CustomerId) .Template(x => Html.ActionLink(x.CustomerName, "Edit", "Customer", new { id = x.CustomerId }, new { })) .ClientTemplate("\"><#= CustomerName #>"); }) .DataBinding(dataBinding => dataBinding.Ajax().Select("ReportBestCustomersByNumberOfOrdersList", "Customer")) .EnableCustomBinding(true))