@using Kreta.Web.Helpers.Grid;
@using Kreta.Web.Areas.Tanulo.Models
@model TanuloDetailModel
@{
const string TanuloApiController = Constants.ApiControllers.AmiTanuloApi;
var gridName = Model.GridNamePrefix + "FeljegyzesHaviGrid";
}
@(
Html.KretaGrid(
gridName,
new GridApiUrl(TanuloApiController, "GetFeljegyzesekHaviGrid", new Dictionary { { "Id", Model.TanuloId.ToString() }, { "OsztalycsoportId", Model.OsztalycsoportId.Value.ToString() } }),
useToolBar: Model.GridUseToolBar
)
.Columns(columns =>
{
columns.Bound(c => c.Tipus);
columns.Bound(c => c.Szeptember);
columns.Bound(c => c.Oktober);
columns.Bound(c => c.November);
columns.Bound(c => c.December);
columns.Bound(c => c.Januar);
columns.Bound(c => c.Februar);
columns.Bound(c => c.Marcius);
columns.Bound(c => c.Aprilis);
columns.Bound(c => c.Majus);
columns.Bound(c => c.Junius);
columns.Bound(c => c.Felev);
columns.Bound(c => c.Ossz);
})
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
)