fin-hypergrid / fin-hypergrid/core

How to programmatically render invisible computed columns

Open
#790 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
907
Forks
139
PR merge metrics
No merged PRs in 30d

Description

Hi, Another computed column question again.

I have two tables, one tableA with computed columns holds most of data, the other tableB makes some data aggregation based on tableA's computed columns. (chain update solved by writing new dataRow attribute while rendering)

**But I found that the computed columns got rendered when they came into view. So If I don't scroll the columns into view, tableB won't get any computed values since the computation not starts.**

Similarly, if there is only one table, computed columnA is at the most right side of table which is currently hidden, computed columnB is computed using columnA(using the chain update trick) and available in current view. The columnB will render first, and lose dependence of columnA's computation.

**To achieve my original purpose, I wonder is there any way to manually render the invisible columns.** If there isn't any solution available, which part of code should I looking into. (Of course at last, I could
try rewriting the computed columns pattern into some event listening and setData process...)

Thanks

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.