@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(); }
@( Html.KretaGrid( gridName, getUrl: new GridApiUrl(OraSorszamozasHalmazApiController, "GetOsszerendelesGrid", new Dictionary { { "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 { new RowFunction { Name = CommonResource.Torles, ClientAction = "OraSorszamozasHalmazHelper.deleteOsszerendelesConfirm", IconEnum = GridRowFunctionIconEnum.Torles, }, }) )