@using Kreta.Framework;
@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Intezmeny.Models;
@using Kreta.Web.Helpers;
@model IntezmenyModel
@Html.Partial("Intezmeny_Adatok_Partial", Model)
@StringResourcesUtil.GetString(3247 /*Működési helyek*/)
@(Html.KretaGrid
(
name: "IntezmenyMukodesiHelyGrid",
getUrl: new GridApiUrl("IntezmenyApi", "GetIntezmenyMukodesiHelyGrid", new Dictionary { }),
clientTemplate: "detailGrid-template",
allowScrolling: true,
clientTemplateUrl: @Url.Action("IntezmenyFeladatEllatasiHelyDetailGrid", "Intezmeny", new { area = "Intezmeny" })
)
.LinkButtonColumn(string.Empty, c => c.Nev, "IntezmenyHelper.onInfoMukodesiHely", Kreta.Enums.ManualEnums.GridButtonsEnum.Kivalasztas)
.Columns(columns =>
{
columns.Bound(c => c.Iranyitoszam).Width("10%");
columns.Bound(c => c.Varos);
columns.Bound(c => c.Telefon).Width("15%");
columns.Bound(c => c.Email);
})
.RowFunction(Html, new List {
new RowFunction { NameResourceId = 118 /*Adatok*/, ClientAction = "IntezmenyHelper.onInfoMukodesiHely" }
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)
@Html.KretaGridTemplate("detailGrid-template")