2011-04-22 17:09:06 +00:00
|
|
|
@model IEnumerable<NzbDrone.Core.Repository.Config>
|
2011-12-10 05:05:17 +00:00
|
|
|
@{ViewBag.Title = "Configuration";}
|
2011-12-01 05:25:01 +00:00
|
|
|
@(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
|
2011-05-09 04:23:57 +00:00
|
|
|
.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);
|
2011-06-28 01:23:22 +00:00
|
|
|
}).Width(90).Title("Actions");
|
2011-05-09 04:23:57 +00:00
|
|
|
})
|
|
|
|
.Editable(editing => editing.Mode(GridEditMode.InLine))
|
|
|
|
.Sortable()
|
|
|
|
)
|