Is it possible to force the group to be expanded rater than collapsed by default?
1 Like
Hi,
You should use the GroupTable interface methods expandAll() and expand(GroupInfo groupId). For example, write this code in your screen controller:
@Inject
private GroupTable<YourEntity> yourEntitiesTable;
@Inject
private GroupDatasource<YourEntity, UUID> yourEntitiesDs;
@Override
public void init(Map<String, Object> params) {
yourEntitiesDs.addCollectionChangeListener(e -> {
if (e.getOperation().equals(CollectionDatasource.Operation.REFRESH)) {
yourEntitiesTable.expandAll();
});
2 Likes