JMIX Programmatic Binding After View Show

We need to add columns in the Kanban Component Programmaticaly and the code below seems to works fine

List<FsprayersStatoTicket> stati = dataManager.load(FsprayersStatoTicket.class).all().list();
        stati.forEach(fsprayersStatoTicket -> {
            KanbanColumn col = new KanbanColumn(fsprayersStatoTicket.getStato());
            kanbanRichieste.addColumn(col);
        });

The only problem is on the view that is not able to show data until we clicked the refresh button on the datacontainer filter

We have tried also to update via Code using the following code

List<FsprayersRichiestaIntervento> rics = dataManager.load(FsprayersRichiestaIntervento.class).all().list();
        fsprayersRichiestaInterventoesDc.setItems(rics);
        fsprayersRichiestaInterventoesDl.setQuery("select e from FsprayersRichiestaIntervento e");
        fsprayersRichiestaInterventoesDl.load();

Hi!

In order to bind any Jmix component to data, you must either specify an items or a valueSource in case of single property component.

Please refer to the Programmatic Binding section of the documentation.
https://docs.jmix.io/jmix/kanban/kanban-component.html#programmatic-binding

Best regards,
Dmitriy