▦K2 Advanced GridsDeveloper Portal / 0.24
Documentation / Getting started

Multiple ListViews

Use one configuration object and one engine per form. Each ListView has its own Area Item ID.

Configuration inheritance

Common settings belong in defaults. Each entry in grids can override them. For supported nested modules, the engine merges defaults with the individual module settings. Not all objects are recursively merged.

Important — required configuration change

Replace REPLACE_WITH_YOUR_AREAITEMID with the actual Area Item ID of your own ListView before using this example. See Grid Discovery. Without a matching ID the engine cannot target your ListView.

/* Fragment: replace the grids array in the complete template. */
grids: [
  { areaItemId: "REPLACE_WITH_YOUR_AREAITEMID", enabled: true },
  { areaItemId: "REPLACE_WITH_YOUR_AREAITEMID", enabled: true,
    activeFilters: { enabled: false } }
]

Replace each occurrence with the distinct runtime ID of its corresponding ListView.

Use real IDs and keep the complete template defaults. Saved user preferences can override applicable settings when enabled. In a tested paging example, resetting preferences changed the displayed page size from 10 to the configured 20.

Enlarged screenshot