how to get the ID(Primary key) of the ProjectGroup model ? when i want to use that ID in the method like DataServiceFactory.AdminService.GetUsersForProjectGroup(ID) , i cant bind it , just for now to check, i passed ID as "1" in the below code . can any one help how to bind the "ID "
@(Html.Kendo().Grid(Model.ProjectGroups)
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<div><h4>@item.Name</h4><small>@item.Description</small></div>).Title("Name");
List<User> users = DataServiceFactory.AdminService.GetUsersForProjectGroup(1);
columns.Template(
@<div>
@foreach(var user in users){<p>@user.FullName</p>}</div>).Title("Members");
List<Partition> partitions = DataServiceFactory.AdminService.GetAccessedPartitionForProjectGroup(1);
columns.Template(
@<div>
@foreach (var partition in partitions)
{<p>@partition.Name</p>}</div>).Title("Partitions");
columns.Template(@<a href="@Url.Action("EditGroup", new { ID = item.ID })"><i class="icon-pencil"></i></a>);
})
.Pageable()
.Sortable()
)
@(Html.Kendo().Grid(Model.ProjectGroups)
.Name("Grid")
.Columns(columns =>
{
columns.Template(@<div><h4>@item.Name</h4><small>@item.Description</small></div>).Title("Name");
List<User> users = DataServiceFactory.AdminService.GetUsersForProjectGroup(1);
columns.Template(
@<div>
@foreach(var user in users){<p>@user.FullName</p>}</div>).Title("Members");
List<Partition> partitions = DataServiceFactory.AdminService.GetAccessedPartitionForProjectGroup(1);
columns.Template(
@<div>
@foreach (var partition in partitions)
{<p>@partition.Name</p>}</div>).Title("Partitions");
columns.Template(@<a href="@Url.Action("EditGroup", new { ID = item.ID })"><i class="icon-pencil"></i></a>);
})
.Pageable()
.Sortable()
)