33 lines
No EOL
1.4 KiB
Text
33 lines
No EOL
1.4 KiB
Text
@using Kreta.Web.Helpers.Grid;
|
|
@using Kreta.Web.Areas.Tanulo.Models
|
|
@using Kreta.BusinessLogic.Classes
|
|
@model TanuloDetailModel
|
|
|
|
@{
|
|
const string TanuloApiController = Constants.ApiControllers.AmiTanuloApi;
|
|
var gridName = Model.GridNamePrefix + "IgazolasokGrid";
|
|
}
|
|
|
|
<div class="container-fluid">
|
|
@(
|
|
Html.KretaGrid<IgazolasokModel>(
|
|
gridName,
|
|
new GridApiUrl(TanuloApiController, "GetIgazolasokGrid", new Dictionary<string, string> { { "Id", Model.TanuloId.ToString() } }),
|
|
useToolBar: Model.GridUseToolBar,
|
|
allowExcelExport: true,
|
|
popupExport: true,
|
|
excelExportFileName: string.Format("{0}_IgazolasokExport", Model.SzemelyesAdatokModel.TeljesExportNev)
|
|
)
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.IgazolasKezdete).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
|
columns.Bound(c => c.IgazolasVege).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
|
columns.Bound(c => c.Pedagogus);
|
|
columns.Bound(c => c.Tipusa_DNAME);
|
|
columns.Bound(c => c.Megjegyzes);
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
</div> |