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 Order - load grid data after a show tab

KrzysztofPajak44e9e1e5de88
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/Edit.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/Edit.cshtml
index 94ee7c629..9275b20c7 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/Edit.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/Edit.cshtml
@@ -46,7 +46,7 @@
</div>
</div>
<div class="x_content form">
- <admin-tabstrip name="order-edit" SetTabPos="true">
+ <admin-tabstrip name="order-edit" SetTabPos="true" BindGrid="true">
<items>
<tabstrip-item text="@Loc["Admin.Orders.Info"]" tab-index="0">
<content>
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Documents.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Documents.cshtml
index 0d02b70bf..58f93a4c1 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Documents.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.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/Order/_OrderDetails.Notes.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notes.cshtml
index daaba2ba6..828c62249 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notes.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notes.cshtml
@@ -47,6 +47,7 @@
serverFiltering: true,
serverSorting: true
},
+ autoBind: false,
pageable: {
refresh: true,
numeric: false,
diff --git a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notifications.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notifications.cshtml
index d7d18a286..7b2aa8076 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notifications.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Notifications.cshtml
@@ -35,6 +35,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/Order/_OrderDetails.Shipment.cshtml b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Shipment.cshtml
index 0a3ed011c..137bcaae7 100644
--- a/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Shipment.cshtml
+++ b/src/Web/Grand.Web.Admin/Areas/Admin/Views/Order/_OrderDetails.Shipment.cshtml
@@ -53,6 +53,7 @@
serverFiltering: true,
serverSorting: true
},
+ autoBind: false,
pageable: {
refresh: true,
numeric: false,