+ @{Html.Telerik().Grid(specialSeasons.Episodes).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 #>
"))
+ .ClientEvents(clientEvents =>
+ {
+ clientEvents.OnDataBinding("grid_bind");
+ clientEvents.OnDataBound("grid_bound");
+ })
+ .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber)).Enabled(false))
+ .Footer(false)
+ .Render(); }
+
Loading...
+
}
}
@section Scripts{
diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml
index 84ed0c13e..5dea9dc03 100644
--- a/NzbDrone.Web/Views/Series/Index.cshtml
+++ b/NzbDrone.Web/Views/Series/Index.cshtml
@@ -60,14 +60,6 @@
.center();
}
- function grid_bind(args) {
- $('.grid-container').children('.grid-loader').stop().css("top", "0px").fadeIn('slow');
- }
-
- function grid_bound(args) {
- $('.grid-container').children('.grid-loader').stop().fadeOut('slow');
- }
-
function openSeasonEditor(seriesId, seriesName) {
windowElement = null;
windowElement = $.telerik.window.create({
diff --git a/NzbDrone.Web/Views/Shared/SiteLayout.cshtml b/NzbDrone.Web/Views/Shared/SiteLayout.cshtml
index a40680b7f..abf64dce5 100644
--- a/NzbDrone.Web/Views/Shared/SiteLayout.cshtml
+++ b/NzbDrone.Web/Views/Shared/SiteLayout.cshtml
@@ -49,6 +49,7 @@
.Add("Notification.js")
.Add("jquery-tgc-countdown-1.0.js")
.Add("MicrosoftAjax.js")
- .Add("MicrosoftMvcValidation.js"))
+ .Add("MicrosoftMvcValidation.js")
+ .Add("gridLoad.js"))
.Render();}