SYNC: fixed all search column settings for alternative grids #1118

This commit is contained in:
SPRINX0\prochazka
2025-06-19 14:42:47 +02:00
committed by Diflow
parent e85f43beb1
commit 28439c010f
6 changed files with 21 additions and 10 deletions

View File

@@ -101,9 +101,10 @@ export class CollectionGridDisplay extends GridDisplay {
setCache: ChangeCacheFunc,
loadedRows,
changeSet,
readOnly = false
readOnly = false,
currentSettings = null
) {
super(config, setConfig, cache, setCache, driver);
super(config, setConfig, cache, setCache, driver, undefined, undefined, currentSettings);
const changedDocs = _.compact(changeSet.updates.map(chs => chs.document));
const insertedDocs = _.compact(changeSet.inserts.map(chs => chs.fields));
this.columns = analyseCollectionDisplayColumns([...(loadedRows || []), ...changedDocs, ...insertedDocs], this);

View File

@@ -17,9 +17,10 @@ export class JslGridDisplay extends GridDisplay {
isDynamicStructure: boolean,
supportsReload: boolean,
editable: boolean = false,
driver: EngineDriver = null
driver: EngineDriver = null,
currentSettings = null
) {
super(config, setConfig, cache, setCache, driver);
super(config, setConfig, cache, setCache, driver, undefined, undefined, currentSettings);
this.filterable = true;
this.sortable = true;

View File

@@ -12,9 +12,10 @@ export class ViewGridDisplay extends GridDisplay {
cache: GridCache,
setCache: ChangeCacheFunc,
dbinfo: DatabaseInfo,
serverVersion
serverVersion,
currentSettings
) {
super(config, setConfig, cache, setCache, driver, dbinfo, serverVersion);
super(config, setConfig, cache, setCache, driver, dbinfo, serverVersion, currentSettings);
this.columns = this.getDisplayColumns(view);
this.formColumns = this.columns;
this.filterable = true;