|
|
@ -126,18 +126,12 @@
|
|
|
|
.Width(80);
|
|
|
|
.Width(80);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div><#= Overview #> </br><#= Path #> </div>"))
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate("<div><#= Overview #> </br><#= Path #> </div>"))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(false))
|
|
|
|
//.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.EpisodeNumber).Descending()).Enabled(false))
|
|
|
|
.Footer(true)
|
|
|
|
.Footer(true)
|
|
|
|
.DataBinding(
|
|
|
|
.DataBinding(
|
|
|
|
d =>
|
|
|
|
d =>
|
|
|
|
d.Ajax().Select("_AjaxSeasonGrid", "Series",
|
|
|
|
d.Ajax().Select("_AjaxSeasonGrid", "Series",
|
|
|
|
new RouteValueDictionary { { "seriesId", Model.SeriesId }, { "seasonNumber", season } }))
|
|
|
|
new RouteValueDictionary { { "seriesId", Model.SeriesId }, { "seasonNumber", season } }))
|
|
|
|
@*.ToolBar(toolbar => toolbar.Template(@<text>
|
|
|
|
|
|
|
|
<ul class="sub-menu">
|
|
|
|
|
|
|
|
<li><a href="../Episode/SearchSeason?seriesId=@seriesId&seasonNumber=@season" onclick="searchSeason('@seriesId', @season); return false;">Search for Season</a></li>
|
|
|
|
|
|
|
|
<li><a href="../Episode/RenameSeason?seriesId=@seriesId&seasonNumber=@season" onclick="renameSeason('@seriesId', @season); return false;">Rename Season</a></li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
</text>))*@
|
|
|
|
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
.ClientEvents(clientEvents =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
clientEvents.OnRowDataBound("grid_rowBound");
|
|
|
|
clientEvents.OnRowDataBound("grid_rowBound");
|
|
|
|