init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
@using Kreta.Framework;
|
||||
@using Kreta.Web.Helpers.Grid;
|
||||
@using Kreta.Web.Areas.Tantargy.Models
|
||||
@using Kreta.Web.Classes
|
||||
@using Kreta.BusinessLogic.Classes
|
||||
@model TantargyModel
|
||||
|
||||
<div>
|
||||
@(
|
||||
Html.KretaGrid<TantargyOrarendiOraiGridModel>
|
||||
(
|
||||
name: "TantargyOrarendiOraiGrid",
|
||||
getUrl: new GridApiUrl("TantargyakApi", "GetTantargyOrarendiOraiGrid", new Dictionary<string, string> { { "tantargyID", Model.ID.ToString() } })
|
||||
)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Hetirend_DNAME).Width("10%");
|
||||
columns.Bound(c => c.Hetnapja_DNAME).Width("15%").Sortable(false);
|
||||
columns.Bound(c => c.Ora).Width("10%");
|
||||
columns.Bound(c => c.OsztCsop);
|
||||
columns.Bound(c => c.Terem);
|
||||
columns.Bound(c => c.ErvenyessegKezdete).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
columns.Bound(c => c.ErvenyessegVege).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]).Width("10%");
|
||||
})
|
||||
.Sortable(sortable => sortable
|
||||
.AllowUnsort(true)
|
||||
.SortMode(GridSortMode.MultipleColumn))
|
||||
)
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user