From f58b08a3d3f11b296da0f9ea7dde80d2c7188eef Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Tue, 12 Nov 2024 16:54:35 +0800 Subject: [PATCH 1/2] Fix Datatable fnSetColumnVis legacy method usage issue --- .../datatables/datatables-extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js index e43c7caad94..26fcd193b30 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js @@ -226,7 +226,7 @@ var abp = abp || {}; }; var hideColumnWithoutRedraw = function (tableInstance, colIndex) { - tableInstance.fnSetColumnVis(colIndex, false, false); + tableInstance.api().column(colIndex).visible(false); }; var hideEmptyColumn = function (cellContent, tableInstance, colIndex) { From 0f2f31d02a5682fc6e60fb809ca8661e975cc24b Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Tue, 12 Nov 2024 16:56:23 +0800 Subject: [PATCH 2/2] Update datatables-extensions.js --- .../datatables/datatables-extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js index 26fcd193b30..0f2b028daf3 100644 --- a/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js +++ b/framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/datatables/datatables-extensions.js @@ -226,7 +226,7 @@ var abp = abp || {}; }; var hideColumnWithoutRedraw = function (tableInstance, colIndex) { - tableInstance.api().column(colIndex).visible(false); + tableInstance.api().column(colIndex).visible(false, false); }; var hideEmptyColumn = function (cellContent, tableInstance, colIndex) {