<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> <%@ Import Namespace="Telerik.Web.Mvc.UI" %> <%: Model.Title %>
ID
<%: Model.SeriesId %>
Overview
<%: Model.Overview %>
Status
<%: Model.Status %>
AirTimes
<%: Model.AirTimes %>
Language
<%: Model.Language.ToUpper() %>
Location
<%: Model.Path %>
<%= Html.Telerik().Grid(Model.Episodes) .Name("Episodes") .Columns(columns => { columns.Bound(c => c.EpisodeNumber).Width(10); columns.Bound(c => c.Title); columns.Bound(c => c.AirDate).Format("{0:d}").Width(150); }) .Groupable(grouping => grouping.Groups(groups => groups.Add(c => c.SeasonNumber))) .Sortable(rows=>rows .OrderBy(epSort => epSort.Add(c => c.EpisodeNumber))) %>

<%-- <%: Html.ActionLink("Edit", "Edit", new { /* id=Model.PrimaryKey */ }) %> |--%> <%: Html.ActionLink("Back to List", "Index") %> <%: Html.ActionLink("Load Episodes", "LoadEpisodes", new{seriesId= Model.SeriesId}) %>