@model ActivityLogSearchModel @using Telerik.Web.Mvc; @{ ViewBag.Title = T("Admin.Configuration.ActivityLog.ActivityLog").Text; } @using (Html.BeginForm()) {
@T("Admin.Configuration.ActivityLog.ActivityLog")

@Html.SmartLabelFor(model => model.CreatedOnFrom) @Html.EditorFor(model => model.CreatedOnFrom)
@Html.SmartLabelFor(model => model.CreatedOnTo) @Html.EditorFor(model => model.CreatedOnTo)
@Html.SmartLabelFor(model => model.ActivityLogTypeId) @Html.DropDownListFor(ModelBase => ModelBase.ActivityLogTypeId, Model.ActivityLogType, T("Common.Unspecified"))
@Html.SmartLabelFor(model => model.CustomerEmail) @Html.EditorFor(model => model.CustomerEmail)
@Html.SmartLabelFor(model => model.CustomerSystemAccount) @Html.EditorFor(model => Model.CustomerSystemAccount)
 

@(Html.Telerik().Grid() .Name("activityLog-grid") .DataKeys(x => { x.Add(y => y.Id).RouteKey("Id"); }) .ClientEvents(events => events.OnDataBinding("onDataBinding").OnDataBound("onDataBound")) .Columns(columns => { columns.Bound(x => x.Id) .ClientTemplate("") .Title("") .Width(50) .HtmlAttributes(new { style = "text-align:center" }) .HeaderHtmlAttributes(new { style = "text-align:center" }); columns.Bound(x => x.ActivityLogTypeName); columns.Bound(x => x.Comment); columns.Bound(x => x.CustomerId) .ClientTemplate("\"><#= CustomerEmail #>"); columns.Bound(x => x.IsSystemAccount) .ClientTemplate(" <#= SystemAccountName #>") .Width(220); columns.Bound(x => x.CreatedOn) .Width(200); }) .DataBinding(dataBinding => { dataBinding.Ajax() .Select("ListActivityLogs", "ActivityLog"); }) .Pageable(settings => settings.PageSize(Model.GridPageSize).Position(GridPagerPosition.Both)) .PreserveGridState() .EnableCustomBinding(true))
}