@model List @using NzbDrone.Web.Models; @section MainContent{ @{Html.Telerik().Grid().Name("missing") .TableHtmlAttributes(new { @class = "Grid" }) .Columns(columns => { columns.Bound(c => c.SeriesTitle).Title("Series Name"); columns.Bound(c => c.SeasonNumber).Title("Season").Width(1); columns.Bound(c => c.EpisodeNumber).Title("Episode").Width(1); columns.Bound(c => c.EpisodeTitle).Title("Episode Title"); columns.Bound(c => c.AirDate).Title("Air Date").Width(50); }) .DetailView(detailView => detailView.ClientTemplate( "
" + "
Overview: <#= Overview #>
" + "
" )) .DataBinding(data => data.Ajax().Select("_AjaxBinding", "Missing")) .Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.AirDate).Descending()).Enabled(true)) .Pageable( c => c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) //.Filterable() //.ClientEvents(c => c.OnRowDataBound("onRowDataBound")) .Render();} }