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 collection - load grid data for active tab

KrzysztofPajakdee210830fbf
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabActivityLog.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabActivityLog.cshtml
index 7c3148197..bd32854c8 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabActivityLog.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabActivityLog.cshtml
@@ -36,6 +36,7 @@
serverFiltering: true,
serverSorting: true
},
+ autoBind: false,
pageable: {
refresh: true,
pageSizes: [@(adminAreaSettings.GridPageSizes)]
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabDocuments.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabDocuments.cshtml
index 174de38f1..987440b2f 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabDocuments.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabDocuments.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/Collection/_CreateOrUpdate.TabProducts.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabProducts.cshtml
index 01e3d4727..f04ae8bfc 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabProducts.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.TabProducts.cshtml
@@ -66,6 +66,7 @@
serverFiltering: true,
serverSorting: true
},
+ autoBind: false,
pageable: {
refresh: true,
pageSizes: [@(adminAreaSettings.GridPageSizes)]
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.cshtml
index d0d4fd399..068bbc594 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Collection/_CreateOrUpdate.cshtml
@@ -6,7 +6,7 @@
}
<div asp-validation-summary="All"></div>
<input asp-for="Id" type="hidden" />
-<admin-tabstrip name="collection-edit">
+<admin-tabstrip name="collection-edit" BindGrid="true">
<items>
<tabstrip-item text="@Loc["Admin.Catalog.Collections.Info"]" tab-index="0">
<content>