parent
0e429f58a1
commit
86019a2597
@ -0,0 +1,28 @@
|
|||||||
|
@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();}
|
||||||
|
}
|
Loading…
Reference in new issue