How to load a kanban view with a data provider or procedure

The kanban view node supports loading data from attributes or from a custom data source implemented by the developer in a data provider or procedure.

The former option is easier to use, while the latter (using a custom data source) is more flexible.

To use the custom data source option, the developer must:

  1. Set the "Datasource From" property to "Dataprovider". Note: While this value is used to maintain compatibility with other GeneXus controls, both data providers and procedures can be used.
  2. Implement the data provider / procedure. This object must:
    1. Return the Kanban columns in an out parameter (in procedures) or as the output (in data providers).
      This value must be a collection of the K2BTools.Controls.Kanban.Column SDT.
    2. The object can receive all parameters needed.
    3. The object logic can be determined without any restrictions.
  3. Select the object in the Datasource property and the values for its parameters in the Datasource parameters property.

You can see a sample of this mechanism by downloading this XPZ.