Selection across unloaded rows
Represents 'select all' and range selection over remote data as a rule: all rows matching the current filter, minus listed exclusions, plus listed inclusions. Rows do not need to be loaded. The rule can be sent to the server for bulk actions, and the selected count comes from the server.
Planned. This page shows the specification from issue #180. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
840k filtered rows, with a selection summary bar.
Expected behavior
Select all sets the mode to 'all', and the summary reads '840,000 selected'. Unticking rows adds them to exclude. Changing the filter prompts the user to keep or clear the selection, because the rule's filter would otherwise be stale.
Planned API surface
api.getSelectionRule()SelectionRule { mode: 'all'|'none', filterModel, include[], exclude[] }remoteSource.countSelection(rule)event: selectionRuleChangedAcceptance criteria
- Select all makes no data requests. (pending)
- Rows loaded later appear selected according to the rule. (pending)
- The rule JSON includes the filterModel that was in effect when select all was chosen. (pending)
- The selected count uses countSelection when it is available, and otherwise shows 'all matching' without a number. (pending)