CxJS

Selections

Selections enable users to select one or more items from widgets like Grid, List, and charts. CxJS provides three selection models, each suited for different use cases.

Comparison

ModelStorageBest for
KeySelectionKey value(s) in separate variableSelection survives data updates
SimpleSelectionEntire object in separate variableSimple single select
PropertySelectionBoolean flag on each recordCheckbox lists, toggles

How to Choose

Use KeySelection when selection needs to survive data refreshes. Keys remain stable while object references change after updates.

Use SimpleSelection for simple single-select scenarios where you need immediate access to the selected object.

Use PropertySelection for checkbox-based UIs where each record tracks its own selection state.