<%@ 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" %> <%@ Import Namespace="NzbDrone.Core.Repository" %> Upcoming <% Html.Telerik().Menu().Name("historyMenu").Items(items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render(); %>

Yesterday

<%Html.Telerik().Grid().Name("Yesterday").NoRecordsTemplate("No watched shows aired yesterday") .Columns(columns => { columns.Bound(c => c.SeriesName) .ClientTemplate("<#= SeriesName #>") .Title("Series Name").Width(110); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(120); columns.Bound(c => c.AirDate).Title("Air Date").Width(0); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingYesterday", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Filterable() //.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .Render(); %>

Today

<%Html.Telerik().Grid().Name("Today").NoRecordsTemplate("No watched shows airing today.") .Columns(columns => { columns.Bound(c => c.SeriesName) .ClientTemplate("<#= SeriesName #>") .Title("Series Name").Width(110); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(120); columns.Bound(c => c.AirDate).Title("Air Date").Width(0); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingToday", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Filterable() //.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .Render(); %>

7-Day Forecast

<%Html.Telerik().Grid().Name("Week").NoRecordsTemplate("No watched shows airing in the next week...") .Columns(columns => { columns.Bound(c => c.SeriesName) .ClientTemplate("<#= SeriesName #>") .Title("Series Name").Width(110); columns.Bound(c => c.SeasonNumber).Title("Season #").Width(40); columns.Bound(c => c.EpisodeNumber).Title("Episode #").Width(40); columns.Bound(c => c.Title).Title("Episode Title").Width(120); columns.Bound(c => c.AirDate).Title("Air Date").Width(0); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBindingWeek", "Upcoming")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Ascending()).Enabled(true)) //.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric)) //.Filterable() //.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .Render(); %>