You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.4 KiB
28 lines
1.4 KiB
14 years ago
|
@model List<MissingEpisodeModel>
|
||
|
@using NzbDrone.Web.Models;
|
||
|
|
||
|
@section MainContent{
|
||
|
@{Html.Telerik().Grid<MissingEpisodeModel>().Name("missing")
|
||
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||
|
.Columns(columns =>
|
||
|
{
|
||
|
columns.Bound(c => c.SeriesTitle).Title("Series Name");
|
||
|
columns.Bound(c => c.SeasonNumber).Title("Season").Width(1);
|
||
|
columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(1);
|
||
|
columns.Bound(c => c.EpisodeTitle).Title("Episode Title");
|
||
|
columns.Bound(c => c.AirDate).Title("Air Date").Width(50);
|
||
|
})
|
||
|
.DetailView(detailView => detailView.ClientTemplate(
|
||
|
"<fieldset>" +
|
||
|
"<div><b>Overview: </b><#= Overview #></div>" +
|
||
|
"</fieldset>"
|
||
|
))
|
||
|
.DataBinding(data => data.Ajax().Select("_AjaxBinding", "Missing"))
|
||
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Descending()).Enabled(true))
|
||
|
.Pageable(
|
||
|
c =>
|
||
|
c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
||
|
//.Filterable()
|
||
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
||
|
.Render();}
|
||
|
}
|