Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Admin panel - Edit product - load grid data for active tab

KrzysztofPajakcadc4c41a5a2
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 @@
<div asp-validation-summary="All"></div>
<input asp-for="Id" type="hidden" />
<input asp-for="Ticks" type="hidden" />
-<admin-tabstrip name="product-edit" SetTabPos="true">
+<admin-tabstrip name="product-edit" SetTabPos="true" BindGrid="true">
<items>
<tabstrip-item text="@Loc["Admin.Catalog.Products.Info"]" tab-index="0">
<content>