@model List @using NzbDrone.Web.Helpers @using NzbDrone.Web.Models; @{ViewBag.Title="Missing";}; @section HeaderContent { @Html.IncludeCss("Grid.css") } @section ActionMenu{ } @{Html.Telerik().Grid().Name("missing") .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(c => c.SeriesTitle) .ClientTemplate("<#= SeriesTitle #>") .Title("Series Title"); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(85); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(85); columns.Bound(c => c.EpisodeTitle).Title("Episode Title"); columns.Bound(c => c.AirDate) .ClientTemplate("<#= AirDateString #>") .Title("Air Date") .Width(90); columns.Bound(c => c.EpisodeId) .Title("Actions") .ClientTemplate("\" onClick=\"searchForEpisode(<#= EpisodeId #>); return false;\">Search") .Width("40"); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBinding", "Missing")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Descending()).Enabled(true)) .Filterable(filtering => filtering .Filters(filters => filters .Add(o => o.SeasonNumber).IsGreaterThan(0))) .Pageable( c => c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) .Render();}