39 lines
1.2 KiB
Text
39 lines
1.2 KiB
Text
@using Kreta.Enums.ManualEnums
|
|
@using Kreta.Resources
|
|
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
|
@using Kreta.Web.Helpers.Grid
|
|
|
|
@model int
|
|
|
|
@{
|
|
const string OraSorszamozasHalmazApiController = Constants.ApiControllers.OraSorszamozasHalmazApi;
|
|
string gridName = "OraSorszamozasHalmazOsszerendelesGrid" + Model.ToString();
|
|
}
|
|
|
|
<div>
|
|
@(
|
|
Html.KretaGrid<OraSorszamozasHalmazOsszerendelesGridModel>(
|
|
gridName,
|
|
getUrl: new GridApiUrl(OraSorszamozasHalmazApiController, "GetOsszerendelesGrid",
|
|
new Dictionary<string, string>
|
|
{
|
|
{ "halmazId", Model.ToString() }
|
|
})
|
|
)
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.DetailOsztalyCsoport).Width("50%");
|
|
columns.Bound(c => c.DetailTantargy).Width("50%");
|
|
})
|
|
.Sortable(sortable => sortable.AllowUnsort(true).SortMode(GridSortMode.MultipleColumn))
|
|
.RowFunction(Html, new List<RowFunction>
|
|
{
|
|
new RowFunction
|
|
{
|
|
Name = CommonResource.Torles,
|
|
ClientAction = "OraSorszamozasHalmazHelper.deleteOsszerendelesConfirm",
|
|
IconEnum = GridRowFunctionIconEnum.Torles,
|
|
},
|
|
})
|
|
)
|
|
</div>
|