- @{Html.Telerik().Grid(specialSeasons.Episodes).Name("seasons_specials")
+ @{Html.Telerik().Grid
().Name("seasons_specials")
.TableHtmlAttributes(new {@class = "Grid"})
.Columns(columns =>
- {
- columns.Bound(c => c.EpisodeNumber).Width(0).Title("Episode");
- columns.Bound(c => c.Title);
- columns.Bound(c => c.AirDate).Format("{0:d}").Width(0);
- })
- //.DetailView(detailView => detailView.ClientTemplate("<#= Overview #> <#= Path #>
"))
+ {
+ columns.Bound(o => o.EpisodeId)
+ .ClientTemplate(
+ " ")
+ .Title("")
+ .Width(1)
+ .HtmlAttributes(new { style = "text-align:center" });
+
+ columns.Bound(c => c.EpisodeNumber).Width(10).Title("Episode");
+ columns.Bound(c => c.Title).Title("Title").Width(300);
+ columns.Bound(c => c.AirDate).Format("{0:d}").Width(10);
+ columns.Bound(c => c.Quality).Width(10);
+ columns.Bound(c => c.Path);
+ })
+ .DetailView(detailView => detailView.ClientTemplate("<#= Overview #> <#= Path #>
"))
.ClientEvents(clientEvents =>
{
clientEvents.OnDataBinding("grid_bind");
clientEvents.OnDataBound("grid_bound");
})
- .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false))
- .Footer(false)
+ .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(true))
+ .Footer(true)
+ .DataBinding(
+ d =>
+ d.Ajax().Select("_AjaxSeasonGrid", "Series",
+ new RouteValueDictionary { { "seasonId", specialSeasons.SeasonId.ToString() } }))
.Render(); }
Loading...
diff --git a/NzbDrone/app.config b/NzbDrone/app.config
index 19dd15844..81d395705 100644
--- a/NzbDrone/app.config
+++ b/NzbDrone/app.config
@@ -4,6 +4,6 @@