@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Tanulo.Models
@using Kreta.BusinessLogic.Classes
@model TanuloDetailModel
@{
const string TanuloApiController = Constants.ApiControllers.AmiTanuloApi;
}
@(
Html.KretaGrid(
name: "ElozmenyekGrid",
getUrl: new GridApiUrl(TanuloApiController, "GetElozmenyekGrid", new Dictionary { { "Id", Model.TanuloId.ToString() } }),
allowExcelExport: true,
popupExport: true,
excelExportFileName: string.Format("{0}_ElozmenyekExport", Model.SzemelyesAdatokModel.TeljesExportNev)
)
.Columns(columns =>
{
columns.Bound(c => c.Tanev).Width("10%");
columns.Bound(c => c.OsztalyCsoport);
columns.Bound(c => c.BelepesDatuma).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
columns.Bound(c => c.KilepesDatuma).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
columns.Bound(c => c.Zaradek);
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)