Disabled Tree Table rendering problem

Hello,

I have a tree table that is displayed, depending on the use case, enabled or disabled.

facilitiesTable.setEnabled(!readonly)

When it’s enabled, everything is fine. When it’s disabled, it displays just the first 15 entries from the datasource.
44%20PM
17%20PM

I noticed on some other screens that even if I have 200 ready elements in the datasource, the whole table renders just when I scroll down. Some kind of lazy-loading. Though, this does not happen when the table is disabled.

Any clue?
Thanks,
-c

Hi Rares,

Thank you for reporting the problem, it’s certainly an issue.

As a workaround, you can use setShowSelection(false) instead of setEnabled(false), and disable the table’s buttonsPanel separately: table.getButtonsPanel().setEnabled(false).
Thus you’ll get a working treeTable with no selection and no active buttons.

1 Like