The
setContainerDataSource
method sets visible columns to all property ids in the container and immediately populates the table (i.e. calls
getValue
). Only after that I’m able to call
setVisibleColumns
to see only few of the columns. This is inefficient, especially when it causes many lazy-initialized columns to be initialized.
Form has a two-parameter
setItemDataSource(Item, Collection)
method, which helps exactly in the same case. Is there any way to avoid initializing all properties to the table, when only some of them are visible?