You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Web/Views/System/Config.cshtml

34 lines
1.0 KiB

@model IEnumerable<NzbDrone.Core.Repository.Config>
@section TitleContent{
Configuration
}
@section MainContent{
@(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
.Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" })
.DataKeys(keys =>
{
keys.Add(p => p.Key);
})
.ToolBar(commands => commands.Insert().ButtonType(GridButtonType.Image))
.DataBinding(dataBinding =>
{
dataBinding.Ajax()
.Select("_SelectAjaxEditing", "System")
.Insert("_InsertAjaxEditing", "System")
.Update("_SaveAjaxEditing", "System");
})
.Columns(columns =>
{
columns.Bound(p => p.Key);
columns.Bound(p => p.Value);
columns.Command(commands =>
{
commands.Edit().ButtonType(GridButtonType.Image);
}).Width(0).Title("Actions");
})
.Editable(editing => editing.Mode(GridEditMode.InLine))
.Sortable()
)
}