31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
@using Kreta.Web.Areas.OsztalyCsoport.Models
|
|
@using Kreta.Web.Helpers.Grid;
|
|
|
|
@model AlapkepzesOsztalyModel
|
|
|
|
@{
|
|
const string OsztalyApiController = Constants.ApiControllers.OsztalyApi;
|
|
}
|
|
|
|
<div>
|
|
@(
|
|
Html.KretaGrid<TanmenetGridModel>
|
|
(
|
|
name: "OsztalyTanmeneteiGrid",
|
|
getUrl: new GridApiUrl(OsztalyApiController, "GetOsztalyTanmenetei", new Dictionary<string, string> { { "osztalyID", Model.ID.ToString() } }),
|
|
allowExcelExport: true,
|
|
popupExport: true,
|
|
excelExportFileName: string.Format("{0}_OsztalyTanmeneteiExport", Model.OsztalyNev)
|
|
)
|
|
.Columns(columns =>
|
|
{
|
|
columns.Bound(c => c.Tanar).Width("25%");
|
|
columns.Bound(c => c.Tantargy).Width("25%");
|
|
columns.Bound(c => c.Ora).Width("25%");
|
|
columns.Bound(c => c.Tema).Width("25%").Sortable(false);
|
|
})
|
|
.Sortable(sortable => sortable
|
|
.AllowUnsort(true)
|
|
.SortMode(GridSortMode.MultipleColumn))
|
|
)
|
|
</div>
|