-@section Scripts{
-
-}
-@{ ViewBag.Title = "Logs";}
-@section ActionMenu{
-
-}
-
- Log entries older than 30 days are automatically deleted.
-@{Html.Telerik().Grid().Name("logsGrid")
- .TableHtmlAttributes(new { @class = "Grid" })
- .Columns(columns =>
- {
- columns.Bound(c => c.Time).Title("Time").Width(170);
- columns.Bound(c => c.Level).Title("Level").Width(70);
- columns.Bound(c => c.Logger).Title("Source");
- columns.Bound(c => c.Message);
- })
- .DetailView(detailView => detailView.ClientTemplate(
- "Method: <#= Method #>
" +
- "<#= ExceptionType #>
" +
- "<#= Exception #>
"
- ))
- .DataBinding(data => data.Ajax().Select("AjaxBindingOld", "Log").Enabled(true))
- .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
- .Pageable(paging => paging.Style(GridPagerStyles.Status).PageOnScroll(true).PageSize(100))
- .Filterable()
- .ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
- .Scrollable(c => c.Height(500))
- .ClientEvents(clientEvents =>
- {
- if (EnviromentProvider.IsProduction)
- clientEvents.OnError("grid_onError");
- })
- .Render();}
-