diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 37704afd143..1a176a369e3 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -1345,6 +1345,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable if (this._columns && this.isStateful() && this.reorderableColumns && !this.columnOrderStateRestored) { this.restoreColumnOrder(); + this.tableService.onColumnsChange(this._columns); } } @@ -2854,9 +2855,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable this.tableWidthState = state.tableWidth; } - if (this.reorderableColumns) { - this.restoreColumnOrder(); - } + // if (this.reorderableColumns) { + // this.restoreColumnOrder(); + // } if (state.expandedRowKeys) { this.expandedRowKeys = state.expandedRowKeys; @@ -5754,7 +5755,16 @@ export class ColumnFilter implements AfterContentInit { - +