@using Kreta.Web.Areas.OsztalyCsoport.Models @using Kreta.Web.Helpers.Grid; @model AlapkepzesOsztalyModel @{ const string OsztalyApiController = Constants.ApiControllers.OsztalyApi; }
@( Html.KretaGrid ( name: "OsztalyTanmeneteiGrid", getUrl: new GridApiUrl(OsztalyApiController, "GetOsztalyTanmenetei", new Dictionary { { "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)) )