|
|
|
@ -126,18 +126,12 @@
|
|
|
|
|
.Width(80);
|
|
|
|
|
})
|
|
|
|
|
.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)
|
|
|
|
|
.DataBinding(
|
|
|
|
|
d =>
|
|
|
|
|
d.Ajax().Select("_AjaxSeasonGrid", "Series",
|
|
|
|
|
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.OnRowDataBound("grid_rowBound");
|
|
|
|
|