BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
@model IEnumerable<WebApplication4.Models.Group>
@{
ViewBag.Title = "Index";
}
<h2>Index</h2>
<p>
@Html.ActionLink("Create New", "Create")
</p>
@(Html.EJ().Grid<WebApplication4.Models.Group>("GridContainer")
.Datasource(Model)
.Columns(col =>
{
col.Field("GroupID").HeaderText("ID").Add();
col.Field("Name").HeaderText("Name").Add();
col.Field("SortOrder").HeaderText("Order").Add();
})
.AllowPaging()
)
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.Name)
</th>
<th>
@Html.DisplayNameFor(model => model.SortOrder)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.SortOrder)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.GroupID }) |
@Html.ActionLink("Details", "Details", new { id=item.GroupID }) |
@Html.ActionLink("Delete", "Delete", new { id=item.GroupID })
</td>
</tr>
}
</table>