@using Kreta.Web.Areas.Hianyzas.Models.Mulasztasok
@using Kreta.Web.Helpers.Grid
@using Kreta.BusinessLogic.Classes
@using Kreta.Web.Helpers
@using Kreta.Web.Areas.Hianyzas.Models
@model MulasztasSearchModel
@{
var gridName = "MulasztasokDatumNezetGrid";
var searchFormName = "MulasztasokSearchForm";
}
@(
Html.KretaGrid(
gridName,
new GridApiUrl(Model.ApiControllerName, "GetMulasztasokDatumNezetGrid", new Dictionary()),
dataParameterFunction: searchFormName,
clientTemplate: "detailGrid-template",
clientTemplateUrl: Url.Action("GetMulasztasokDatumNezetDetailGrid", Model.ControllerName, new { area = "Hianyzas" }),
clientTemplateWholeDataRow: true,
allowPaging: false,
pageSizes: null
)
.Sortable(sortable => sortable
.AllowUnsort(true)
.SortMode(GridSortMode.MultipleColumn))
.Columns(columns =>
{
columns.Bound(c => c.MulasztasDatuma).Format(SDAFormat.Format[SDAFormat.FormatType.ShortDate]);
columns.Bound(c => c.MulasztasNapja).Width("30%");
columns.Bound(c => c.MulasztasokSzama).Width("30%");
})
)
@Html.KretaGridTemplate("detailGrid-template")