@using Kreta.Web.Helpers.Grid; @using Kreta.Web.Areas.Tanulo.Models @using Kreta.BusinessLogic.Classes @model TanuloDetailModel @{ var gridName = Model.GridNamePrefix + "TantargyMentessegekGrid"; const string TanuloApiController = Constants.ApiControllers.KollegiumTanuloApi; }
@( Html.KretaGrid( gridName, new GridApiUrl(TanuloApiController, "GetFelmentesekGrid", new Dictionary { { "Id", Model.TanuloId.ToString() } }), useToolBar: Model.GridUseToolBar, allowExcelExport: true, popupExport: true, excelExportFileName: string.Format("{0}_FelmentesekExport", Model.SzemelyesAdatokModel.TeljesExportNev) ) .Columns(columns => { columns.Bound(c => c.TantargyNev); columns.Bound(c => c.Kezdete).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); columns.Bound(c => c.Vege).Width("10%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]); columns.Bound(c => c.OraMentesites_BNAME); columns.Bound(c => c.ErtekelesMentesites_BNAME); columns.Bound(c => c.SzovegesenErtekelheto_BNAME); columns.Bound(c => c.FelmentesOka); }) .Sortable(sortable => sortable .AllowUnsort(true) .SortMode(GridSortMode.MultipleColumn)) )