init
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@using Kreta.Web.Areas.Tantargy.Models
|
||||
@using Kreta.Web.Areas.TanuloErtekeles.Models.TanuloErtekeles
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
|
||||
@model TantargyModel
|
||||
|
||||
@section AddCss {
|
||||
@Styles.Render(Constants.General.TanuloErtekelesCSS)
|
||||
}
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TanuloErtekelesListGridModel>
|
||||
(
|
||||
"TantargyErtekeleseiGrid",
|
||||
new GridApiUrl("TantargyakApi", "GetTantargyErtekelesListGrid", new Dictionary<string, string> { { "tantargyId", Model.ID.ToString() } }),
|
||||
sort: sort =>
|
||||
{
|
||||
sort.Add(m => m.TanuloNevElotagNelkul).Ascending();
|
||||
sort.Add(m => m.OsztalyCsoportNev).Ascending();
|
||||
})
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.TanuloNevElotagNelkul).SetDisplayProperty("TanuloNev");
|
||||
columns.Bound(c => c.OsztalyCsoportNev).Width("13%").SetDisplayPropertyWithToolip("OsztalyCsoportNev");
|
||||
columns.Bound(c => c.Datum).Width("90px").Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
|
||||
columns.Bound(c => c.ErtekelesTema).Width("14%").SetDisplayPropertyWithToolip("ErtekelesTema");
|
||||
columns.Bound(c => c.TanuloErtekelesText).Width("15%").SetDisplayPropertyWithToolip("TanuloErtekelesText", additionalClasses: "MagatartasSzorgalomSortores").Sortable(false);
|
||||
columns.Bound(c => c.ErtekelesModId_DNAME).Width("13%").SetDisplayPropertyWithToolip("ErtekelesModId_DNAME");
|
||||
columns.Bound(c => c.ErtekeloNyomtatasiNevElotagNelkul).Width("14%").SetDisplayPropertyWithToolip("ErtekeloNyomtatasiNev");
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
</div>
|
||||
Reference in New Issue
Block a user