Try your search with a different keyword or use * as a wildcard.
@model ManufacturerModel
@if (Model.Id > 0)
{
@await Html.PartialAsync("Table", new DataTablesModel
{
Name = "products-grid",
UrlRead = new DataUrl("ProductList", "Manufacturer", new RouteValueDictionary { [nameof(Model.ManufacturerProductSearchModel.ManufacturerId)] = Model.ManufacturerProductSearchModel.ManufacturerId }),
UrlDelete = new DataUrl("ProductDelete", "Manufacturer", null),
UrlUpdate = new DataUrl("ProductUpdate", "Manufacturer", null),
Length = Model.ManufacturerProductSearchModel.PageSize,
LengthMenu = Model.ManufacturerProductSearchModel.AvailablePageSizes,
ColumnCollection = new List
{
new ColumnProperty(nameof(ManufacturerProductModel.ProductName))
{
Title = T("Admin.Catalog.Manufacturers.Products.Fields.Product").Text
},
new ColumnProperty(nameof(ManufacturerProductModel.IsFeaturedProduct))
{
Title = T("Admin.Catalog.Manufacturers.Products.Fields.IsFeaturedProduct").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Render = new RenderBoolean(),
Editable = true,
EditType = EditType.Checkbox
},
new ColumnProperty(nameof(ManufacturerProductModel.DisplayOrder))
{
Title = T("Admin.Catalog.Manufacturers.Products.Fields.DisplayOrder").Text,
Width = "150",
ClassName = NopColumnClassDefaults.CenterAll,
Editable = true,
EditType = EditType.Number
},
new ColumnProperty(nameof(ManufacturerProductModel.ProductId))
{
Title = T("Admin.Common.View").Text,
Width = "150",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonView(new DataUrl("~/Admin/Product/Edit/", nameof(ManufacturerProductModel.ProductId)))
},
new ColumnProperty(nameof(ManufacturerProductModel.Id))
{
Title = T("Admin.Common.Edit").Text,
Width = "200",
ClassName = NopColumnClassDefaults.Button,
Render = new RenderButtonsInlineEdit()
},
new ColumnProperty(nameof(ManufacturerProductModel.Id))
{
Title = T("Admin.Common.Delete").Text,
Width = "100",
Render = new RenderButtonRemove(T("Admin.Common.Delete").Text),
ClassName = NopColumnClassDefaults.Button
}
}
})
}
else
{
@T("Admin.Catalog.Manufacturers.Products.SaveBeforeEdit")
}