@model IEnumerable @if (Model != null && Model.Count() > 0) { @*
*@
@(Html.Kendo().Grid(Model) .Name("grid_AuditLog").Columns(columns => { columns.Bound(c => c.UserName); columns.Bound(c => c.IPAddress); columns.Bound(c => c.URLAccessed); columns.Bound(c => c.TimeAccessed).Format("{0:dd-MM-yyyy HH:mm:ss}"); columns.Bound(c => c.ControllerName); columns.Bound(c => c.MethodName); columns.Bound(c => c.InputParameters); }) .Pageable() .EnableCustomBinding(true) .Scrollable() .Events(events => events.DataBound("addTitleAttribute")).Resizable(resize => resize.Columns(true)) .DataSource(dataSource => dataSource .Ajax() .Batch(true) .PageSize((int)ViewBag.pageSize) .Read(read => read.Action("ShowAuditLogPager", "AuditLog", new { startDate = ViewBag.StartDate, endDate = ViewBag.EndDate,total = ViewBag.total, })) .Total((int)ViewBag.total) ) )
} else {

}