@using NzbDrone.Core.Repository; @using NzbDrone.Web.Models; @model IEnumerable @section TitleContent{ Series } @section ActionMenu{ @{Html.RenderPartial("SubMenu");} } @section MainContent{
@{Html.Telerik().Grid().Name("Grid") .TableHtmlAttributes(new { @class = "Grid" }) .DataKeys(keys => keys.Add(p => p.SeriesId)) .DataBinding(data => data.Ajax() .Select("_AjaxSeriesGrid", "Series") .Update("_SaveAjaxSeriesEditing", "Series") .Delete("_DeleteAjaxSeriesEditing", "Series")) .Columns(columns => { columns.Bound(o => o.Title) .ClientTemplate("<#= Title #>"); columns.Bound(o => o.SeasonsCount).Title("Seasons"); columns.Bound(o => o.QualityProfileName).Title("Quality"); columns.Bound(o => o.Status); columns.Bound(o => o.AirsDayOfWeek); columns.Bound(o => o.Episodes).Title("Episodes").Width(125) .ClientTemplate("
\" class=\"progressbar\">" + "
" + "
" + "" + "
" + "
"); columns.Bound(o => o.Path); columns.Command(commands => { commands.Edit().ButtonType(GridButtonType.Image); commands.Delete().ButtonType(GridButtonType.Image); }).Title("Actions").Width(80); }) .Editable(editor => editor.Mode(GridEditMode.PopUp)) .Sortable(sort => sort.OrderBy(order => order.Add(o => o.Title).Ascending()).Enabled(true)) .DetailView(detailView => detailView.ClientTemplate("
<#= Overview #>
")) .ClientEvents(clientEvents => { clientEvents.OnEdit("grid_edit"); clientEvents.OnSave("grid_save"); clientEvents.OnDataBinding("grid_bind"); clientEvents.OnDataBound("grid_bound"); clientEvents.OnRowDataBound("grid_rowBound"); }) .Render();} Loading Loading...
}