1. No results found.

    Try your search with a different keyword or use * as a wildcard.

RelatedProductAddPopup.cshtml

@model AddRelatedProductSearchModel

@{
    Layout = "_AdminPopupLayout";

    //page title
    ViewBag.PageTitle = T("Admin.Catalog.Products.RelatedProducts.AddNew").Text;
}

@if (ViewBag.RefreshPage == true)
{
    
        try {window.opener.document.forms['@(Context.Request.Query["formId"])'].@(Context.Request.Query["btnId"]).click();}
        catch (e){}
        window.close();
    
}
else
{

    
        
            @T("Admin.Catalog.Products.RelatedProducts.AddNew")
        
        
             
        
    
    
        
            
                
                    
                        
                            
                                
                                    
                                        
                                            
                                        
                                        
                                            
                                        
                                    
                                    
                                        
                                            
                                        
                                        
                                            
                                        
                                    
                                    
                                        
                                            
                                        
                                        
                                            
                                        
                                    
                                
                                
                                    
                                        
                                            
                                        
                                        
                                            
                                        
                                    
                                    
                                        
                                            
                                        
                                        
                                            
                                        
                                    
                                    
                                        
                                            
                                        
                                        
                                            
                                        
                                    
                                
                            
                            
                                
                                    
                                        
                                        @T("Admin.Common.Search")
                                    
                                
                            
                        
                    

                    
                        
                            @await Html.PartialAsync("Table", new DataTablesModel
                            {
                                Name = "products-grid",
                                UrlRead = new DataUrl("RelatedProductAddPopupList", "Product", null),
                                SearchButtonId = "search-products",
                                Length = Model.PageSize,
                                LengthMenu = Model.AvailablePageSizes,
                                Filters = new List
                                {
                                    new FilterParameter(nameof(Model.SearchProductName)),
                                    new FilterParameter(nameof(Model.SearchCategoryId)),
                                    new FilterParameter(nameof(Model.SearchManufacturerId)),
                                    new FilterParameter(nameof(Model.SearchStoreId)),
                                    new FilterParameter(nameof(Model.SearchVendorId)),
                                    new FilterParameter(nameof(Model.SearchProductTypeId))
                                },
                                ColumnCollection = new List
                                {
                                    new ColumnProperty(nameof(ProductModel.Id))
                                    {
                                        IsMasterCheckBox = true,
                                        Render = new RenderCheckBox(nameof(AddRelatedProductModel.SelectedProductIds)),
                                        ClassName =  NopColumnClassDefaults.CenterAll,
                                        Width = "50"
                                    },
                                    new ColumnProperty(nameof(ProductModel.Name))
                                    {
                                        Title = T("Admin.Catalog.Products.Fields.Name").Text
                                    },
                                    new ColumnProperty(nameof(ProductModel.Published))
                                    {
                                        Title = T("Admin.Catalog.Products.Fields.Published").Text,
                                        Width = "100",
                                        ClassName = NopColumnClassDefaults.CenterAll,
                                        Render = new RenderBoolean()
                                    }
                                }
                            })
                        
                        
                            
                                
                                @T("Admin.Common.Save")
                            
                        
                    
                
            
        
    

}