|
|
@ -23,11 +23,9 @@
|
|
|
|
@section TitleContent{
|
|
|
|
@section TitleContent{
|
|
|
|
Logs
|
|
|
|
Logs
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section ActionMenu{
|
|
|
|
@section ActionMenu{
|
|
|
|
@{Html.RenderPartial("SubMenu");}
|
|
|
|
@{Html.RenderPartial("SubMenu");}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@section MainContent{
|
|
|
|
@section MainContent{
|
|
|
|
@{Html.Telerik().Grid<Log>().Name("logsGrid")
|
|
|
|
@{Html.Telerik().Grid<Log>().Name("logsGrid")
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
|
.TableHtmlAttributes(new { @class = "Grid" })
|
|
|
@ -43,17 +41,17 @@ Logs
|
|
|
|
"<div><#= ExceptionType #></div>" +
|
|
|
|
"<div><#= ExceptionType #></div>" +
|
|
|
|
"<div class='stackframe'><#= Exception #></div>"
|
|
|
|
"<div class='stackframe'><#= Exception #></div>"
|
|
|
|
))
|
|
|
|
))
|
|
|
|
.DataBinding(data => data
|
|
|
|
.DataBinding(data =>
|
|
|
|
.Ajax()
|
|
|
|
{
|
|
|
|
.OperationMode(GridOperationMode.Client)
|
|
|
|
data.Server().Select("AjaxBinding", "Log", new { ajax = true });
|
|
|
|
.Select("_AjaxBinding", "Log"))
|
|
|
|
data.Ajax().Select("AjaxBinding", "Log").Enabled(true);
|
|
|
|
|
|
|
|
})
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
|
|
|
|
.Pageable(c => c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
|
|
|
.Pageable(c => c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
|
|
|
.Filterable()
|
|
|
|
.Filterable()
|
|
|
|
.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
.Render();}
|
|
|
|
.Render();}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
function reloadGrid() {
|
|
|
|
function reloadGrid() {
|
|
|
|
var grid = $('#logsGrid').data('tGrid');
|
|
|
|
var grid = $('#logsGrid').data('tGrid');
|
|
|
|