From f1d92cda4cb3fabee00bb10dae36d68cd1d861e5 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Fri, 21 May 2021 17:55:14 -0400 Subject: [PATCH] fix(backend): able to preset filters on hidden columns & all queried --- packages/odata/src/services/grid-odata.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/odata/src/services/grid-odata.service.ts b/packages/odata/src/services/grid-odata.service.ts index ba6af5851..a71fb7d99 100644 --- a/packages/odata/src/services/grid-odata.service.ts +++ b/packages/odata/src/services/grid-odata.service.ts @@ -91,7 +91,7 @@ export class GridOdataService implements BackendService { this.pagination = pagination; if (grid?.getColumns) { - const tmpColumnDefinitions = sharedService?.visibleColumns ?? grid.getColumns() ?? []; + const tmpColumnDefinitions = sharedService?.allColumns ?? grid.getColumns() ?? []; this._columnDefinitions = tmpColumnDefinitions.filter((column: Column) => !column.excludeFromQuery); } }