<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage>" %> <%@ Import Namespace="Telerik.Web.Mvc.UI" %> <%@ Import Namespace="System.Globalization" %> Series <% Html.RenderPartial("SubMenu"); %> <% Html.Telerik().Grid(Model) .Name("Grid") .Columns(columns => { columns.Template(c => { %> <%:Html.ActionLink(c.Title, "Details", new {seriesId =c.SeriesId}) %> <% }).Title("Title"); columns.Bound(o => o.Seasons.Count).Title("Seasons"); columns.Bound(o => o.QualityProfile.Name).Title("Quality"); columns.Bound(o => o.Status); columns.Bound(o => o.AirsDayOfWeek); columns.Bound(o => o.Path); }) .Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(false)) .Render(); %>