@using Kreta.Web.Areas.OsztalyCsoport.Models
@using Kreta.Web.Helpers.Grid;
@using Kreta.BusinessLogic.Classes
@model AlapkepzesOsztalyModel
@{
const string OsztalyApiController = Constants.ApiControllers.KollegiumOsztalyApi;
}
@(
Html.KretaGrid
(
name: "OsztalyIgazolasaiGrid",
getUrl: new GridApiUrl(OsztalyApiController, "GetOsztalyIgazolasai", new Dictionary { { "osztalyID", Model.ID.ToString() } }),
allowExcelExport: true,
popupExport: true,
excelExportFileName: string.Format("{0}_OsztalyIgazolasaiExport", Model.OsztalyNev)
)
.Columns(columns =>
{
columns.Bound(c => c.Nev).Width("20%");
columns.Bound(c => c.Kezdete).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Vege).Width("20%").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.Rogzito).Width("20%");
columns.Bound(c => c.IgazolasTipusa_DNAME).Width("20%");
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)