@using Kreta.Web.Helpers @using Kreta.Web.Helpers.Grid @using Kreta.Web.Areas.Adatszolgaltatasok.Models @using Kreta.Enums.ManualEnums @using Kreta.Resources @model MerohelySearchModel @{ Layout = "~/Views/Shared/_MasterLayout.cshtml"; } @section AddSearchPanel { @using (Html.SearchPanelSideBar("merohelySearchForm", "MerohelyGrid")) { @Html.KretaTextBoxFor(model => model.MerohelyNevSearch).RenderSearchPanelSideBar() @Html.KretaComboBoxFor(x => x.MerohelyTipusIdSearch, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "MerohelyApi", action = "GetMerohelyTipusList" }), "Text", "Value").RenderSearchPanelSideBar() @Html.KretaComboBoxFor(x => x.MerohelyMukodesiHelyIdSearch, Url.HttpRouteUrl(Constants.RouteKey.ActionApi, new { controller = "ComboBoxHelperApi", action = "GetMukodesiHelyList" }), "Text", "Value").RenderSearchPanelSideBar() } }
@( Html.KretaGrid ( name: "MerohelyGrid", getUrl: new GridApiUrl("MerohelyApi", "GetMerohelyGrid", new Dictionary { }), dataParameterFunction: "merohelySearchForm", sort: sort => sort.Add(m => m.Nev).Ascending(), clientTemplateUrl: Url.Action("GetMerohelyDetailGrid", "Merohely", new { area = "Adatszolgaltatasok" }), clientTemplate: "detailGrid-template", clientTemplateWholeDataRow: true, allowSorting: false, allowScrolling: false ) .Columns(columns => { columns.Bound(c => c.MerooraAzonosito); columns.Bound(c => c.Nev); columns.Bound(c => c.MerohelyId).Hidden(); columns.Bound(c => c.MerohelyTipus_DNAME); columns.Bound(c => c.MukodesihelyNev); }) )
@Html.KretaGridTemplate("detailGrid-template")