@using Nop.Core.Infrastructure @using Nop.Web.Framework @{ var defaultGridPageSize = EngineContext.Current.Resolve().DefaultGridPageSize; var gridPageSizes = EngineContext.Current.Resolve().GridPageSizes; Layout = "_AdminLayout"; //page title ViewBag.Title = T("Admin.Plugins.HomePageProduct").Text; }
@await Html.PartialAsync("Table", new DataTablesModel { Name = "announcement-grid", UrlRead = new DataUrl("GetAuctionList", "AuctionPluginAdmin"), Paging = false, ColumnCollection = new List { new ColumnProperty(nameof(Auction.AuctionName)) { Title = "Name", Width = "300" }, new ColumnProperty(nameof(Auction.StartDateUtc)) { Title = "Starts", Width = "300" }, new ColumnProperty(nameof(Auction.EndDateUtc)) { Title = "Ends", Width = "300" }, new ColumnProperty(nameof(Auction.Closed)) { Title = "Closed", Width = "100" }, new ColumnProperty(nameof(Auction.Id)) // Assuming Auction.Id exists { Title = "Actions", Render = new RenderCustom("renderEditButton"), Width = "100" } } })