Adaptable

AdaptableDataRefetchValues

Declared in src/dataSource/dataSourceConfig.ts

Data-source configuration: who executes the data operations (sort/filter/group/pivot), not where the data originates.

  • mode: 'client' (default): the grid holds every row and runs sort, filter, group, aggregate and pivot itself. data can be an array, a promise, or a function - a function that fetches from a server once is still client mode. refetchOn lists the changes that call the function again; the grid still processes the returned rows itself.
  • mode: 'server': the server runs those operations and the grid loads rows on demand - one level per call (the top level, or the children of an expanded group), only the levels it has to show. data must be a function. Every change to sort, filter, groupBy or pivotBy (and every view switch) loads the data again, so refetchOn does not apply. With batchSize, each level is also loaded in batches of that many rows.

#Values

  • 'sort'
  • 'filter'
  • 'groupBy'
  • 'pivotBy'
  • 'viewChange'

#Used by