<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage>" %> <%@ Import Namespace="Telerik.Web.Mvc.UI" %> <%@ Import Namespace="NzbDrone.Web.Models" %> History <% Html.Telerik().Menu().Name("historyMenu").Items(items => { items.Add().Text("Trim History").Action("Trim", "History"); items.Add().Text("Purge History").Action("Purge", "History"); }).Render(); %> <%Html.Telerik().Grid().Name("history") .Columns(columns => { columns.Bound(c => c.SeriesTitle).Title("Series Name").Width(120); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(10); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(10); columns.Bound(c => c.EpisodeTitle).Title("Episode Title").Width(140); columns.Bound(c => c.Quality).Title("Quality").Width(30); columns.Bound(c => c.Date).Title("Date Grabbed").Width(60); }) .DetailView(detailView => detailView.ClientTemplate( "
Overview: <#= EpisodeOverview #>
" + "
NZB Title: <#= NzbTitle #>
" + "
Proper: <#= IsProper #>
" )) .DataBinding(data => data.Ajax().Select("_AjaxBinding", "History")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Date).Descending()).Enabled(true)) .Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Filterable() //.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .Render(); %>