@model IEnumerable @using DataTables.Mvc.Core @using NzbDrone.Web.Helpers @using SortDirection = DataTables.Mvc.Core.Enum.SortDirection @{ViewBag.Title = "Missing";} @section ActionMenu{ } @Html.GridHtml("missingGrid", "dataTablesGrid") @section Scripts { @( Html.GridScriptForModel("#missingGrid") .Paginate(true) .PageLength(20) .ChangePageLength(false) .Filter(true) .Sort(true) .PaginationType("four_button") .AddColumn(new Column().DataProperty("return seriesTitle(source, type, val);", true).Title("Series Title")) .AddColumn(new Column().DataProperty("EpisodeNumbering").Width("80px").Sortable(false).Title("Episode")) .AddColumn(new Column().DataProperty("EpisodeTitle").Sortable(false).Title("Episode Title")) .AddColumn(new Column().DataProperty("return airDate(source, type, val);", true).Width("150px").Title("Air Date")) .AddColumn(new Column().DataProperty("EpisodeId").Width("40px").Sortable(false).RenderFunction("return actions(row);")) .AddColumn(new Column().DataProperty("Details").Sortable(false).Visible(false).RenderFunction("return details(row);")) .AddSorting(3, SortDirection.Desc) .Language(new Language().EmptyTable("No missing episodes found").ZeroRecords("No missing episodes match the filter")) ) }