From cadc4c41a5a2f3e153b11e5da9123c0f8d59baee Mon Sep 17 00:00:00 2001 From: KrzysztofPajak Date: Thu, 16 Sep 2021 15:26:06 +0200 Subject: [PATCH] Admin panel - Edit product - load grid data for active tab --- .../Admin/Views/Product/_CreateOrUpdate.Activitylog.cshtml | 1 + .../Views/Product/_CreateOrUpdate.AssociatedProducts.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Bids.cshtml | 1 + .../Admin/Views/Product/_CreateOrUpdate.BundleProducts.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Calendar.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Categories.cshtml | 1 + .../Admin/Views/Product/_CreateOrUpdate.Collections.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.CrossSells.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Documents.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Pictures.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Prices.cshtml | 1 + ...teOrUpdate.ProductAttributes.TabAttributeCombinations.cshtml | 1 + .../_CreateOrUpdate.ProductAttributes.TabAttributes.cshtml | 1 + .../Admin/Views/Product/_CreateOrUpdate.ProductPrices.cshtml | 1 + .../Views/Product/_CreateOrUpdate.PurchasedWithOrders.cshtml | 1 + .../Admin/Views/Product/_CreateOrUpdate.Recommended.cshtml | 1 + .../Admin/Views/Product/_CreateOrUpdate.RelatedProducts.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.Reviews.cshtml | 1 + .../Admin/Views/Product/_CreateOrUpdate.SimilarProducts.cshtml | 1 + .../Product/_CreateOrUpdate.SpecificationAttributes.cshtml | 1 + .../Areas/Admin/Views/Product/_CreateOrUpdate.cshtml | 2 +- 21 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Activitylog.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Activitylog.cshtml index 4eb9dc4c4..a22572cb5 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Activitylog.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Activitylog.cshtml @@ -38,6 +38,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.AssociatedProducts.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.AssociatedProducts.cshtml index 4f80f89d0..99d5689c3 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.AssociatedProducts.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.AssociatedProducts.cshtml @@ -68,6 +68,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Bids.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Bids.cshtml index 8c9339d25..3c97e98f8 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Bids.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Bids.cshtml @@ -47,6 +47,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.BundleProducts.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.BundleProducts.cshtml index 6c95138cf..446ca2598 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.BundleProducts.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.BundleProducts.cshtml @@ -67,6 +67,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Calendar.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Calendar.cshtml index 0da8f24bc..3209a4b25 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Calendar.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Calendar.cshtml @@ -325,6 +325,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Categories.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Categories.cshtml index 3dd674372..3b939007a 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Categories.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Categories.cshtml @@ -72,6 +72,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Collections.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Collections.cshtml index d35c3f4d7..575303a9e 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Collections.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Collections.cshtml @@ -72,6 +72,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.CrossSells.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.CrossSells.cshtml index 61c016bfa..82b4f5065 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.CrossSells.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.CrossSells.cshtml @@ -57,6 +57,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Documents.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Documents.cshtml index 5283542a4..82d88bc63 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Documents.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Documents.cshtml @@ -38,6 +38,7 @@ $(document).ready(function () { serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Pictures.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Pictures.cshtml index 289ea057a..afbb220fe 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Pictures.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Pictures.cshtml @@ -61,6 +61,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Prices.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Prices.cshtml index 750ca6490..94f779948 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Prices.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Prices.cshtml @@ -243,6 +243,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributeCombinations.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributeCombinations.cshtml index 8a2366ab2..e1d977b4f 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributeCombinations.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributeCombinations.cshtml @@ -78,6 +78,7 @@ }, pageSize: @(adminAreaSettings.DefaultGridPageSize), }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributes.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributes.cshtml index e27c08657..c93c2b610 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributes.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductAttributes.TabAttributes.cshtml @@ -77,6 +77,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductPrices.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductPrices.cshtml index f8b65cba8..32dbd2df3 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductPrices.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.ProductPrices.cshtml @@ -71,6 +71,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.PurchasedWithOrders.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.PurchasedWithOrders.cshtml index b7fb07620..3f3ffe7ef 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.PurchasedWithOrders.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.PurchasedWithOrders.cshtml @@ -35,6 +35,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Recommended.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Recommended.cshtml index f3a28d892..40b70e135 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Recommended.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Recommended.cshtml @@ -57,6 +57,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.RelatedProducts.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.RelatedProducts.cshtml index 729647084..13859bdaa 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.RelatedProducts.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.RelatedProducts.cshtml @@ -67,6 +67,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Reviews.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Reviews.cshtml index 4e006ec3e..3fd03d63d 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Reviews.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.Reviews.cshtml @@ -35,6 +35,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, pageSizes: [@(adminAreaSettings.GridPageSizes)] diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SimilarProducts.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SimilarProducts.cshtml index 2bb73af69..41073911e 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SimilarProducts.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SimilarProducts.cshtml @@ -67,6 +67,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SpecificationAttributes.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SpecificationAttributes.cshtml index ac8306702..8804f549c 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SpecificationAttributes.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.SpecificationAttributes.cshtml @@ -68,6 +68,7 @@ serverFiltering: true, serverSorting: true }, + autoBind: false, pageable: { refresh: true, numeric: false, diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.cshtml index cb2f8ed8a..7e25c4278 100644 --- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.cshtml +++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Product/_CreateOrUpdate.cshtml @@ -7,7 +7,7 @@
- +