<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage>" %> Logs <% Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log")). Render(); %> <% Html.Telerik().Grid(Model).Name("logs") .Columns(columns => { columns.Bound(c => c.Time).Title("Time").Width(190); columns.Bound(c => c.DisplayLevel).Title("Level").Width(0); columns.Bound(c => c.Message); }) .DetailView(detailView => detailView.ClientTemplate( "
<#= Logger #>
" + "
<#= ExceptionType #>
" + "
<#= ExceptionMessage #>
" + "
<#= ExceptionString #>
" )).DataBinding(data => data.Ajax().Select("_AjaxBinding", "Log")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true)) .Pageable( c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) .Filterable() .ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .Render(); %>