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

KrzysztofPajak820af38f4a84
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabActivityLog.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabActivityLog.cshtml
index 29900a59d..18bc48c7d 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabActivityLog.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_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/Category/_CreateOrUpdate.TabDocuments.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabDocuments.cshtml
index ee13c2091..3c59f7e16 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabDocuments.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_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/Category/_CreateOrUpdate.TabProducts.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabProducts.cshtml
index d7bb6947a..534489142 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabProducts.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.TabProducts.cshtml
@@ -65,6 +65,7 @@
serverFiltering: true,
serverSorting: true
},
+ autoBind: false,
pageable: {
refresh: true,
pageSizes: [@(adminAreaSettings.GridPageSizes)]
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.cshtml
index 332a21096..775169717 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Category/_CreateOrUpdate.cshtml
@@ -7,7 +7,7 @@
<div asp-validation-summary="All"></div>
<input asp-for="Id" type="hidden" />
-<admin-tabstrip name="category-edit">
+<admin-tabstrip name="category-edit" BindGrid="true">
<items>
<tabstrip-item text="@Loc["Admin.Catalog.Categories.Info"]" tab-index="0">
<content>