Selection Helper
Introduction
The Selection Helper widget provides bulk-selection controls for data widgets, enabling users to quickly select all or clear all items when multi-selection is enabled. While primarily used for Gallery widgets, it also supports Data Grid 2 applications.
Here is an example of a Selection Helper widget in a Gallery:

Prerequisites
Before using the Selection Helper widget, ensure the following:
- For Gallery — Gallery widget is configured with Selection set to Multi.
- For Data Grid 2 — Data Grid 2 is configured with Selection set to Multi.
The Selection Helper must be placed inside the data widget's header content area. For specific guidance, see the subsections below.
For Gallery Widgets
- Go to your Gallery widget.
- In the Header section, add the Selection Helper widget to the header content area.
- Configure the Selection Helper properties as needed.
For Data Grid 2 Widgets
- Go to your Data Grid 2 widget.
- In the Header section, add the Selection Helper widget to the header content area.
- Configure the Selection Helper properties as needed.
Properties
Style
Controls how the selection control appears to users:
- Check box (default) — Displays a standard checkbox that reflects the current selection state.
- Custom — Allows you to define custom widgets for different selection states.
Custom Style
Available when Style is set to Custom. Defines custom widgets that display based on the current selection state:
- None Selected Widget — Widget displayed when no items are currently selected. Usually contains Select all controls or empty state indicators.
- Some Selected Widget — Widget displayed when some (but not all) items are selected. Often used to show Select all controls or partial selection indicators.
- All Selected Widget — Widget displayed when all visible items in the grid are selected. Typically used to show Clear selection controls or indicators.
Here is an example of a Selection Helper widget with a custom style configured:

Selection States and Behavior
The Selection Helper automatically manages three distinct selection states:
| State | Checkbox Appearance | Click Behavior | Use Case |
|---|---|---|---|
| None | Unchecked | Selects all visible items | Starting state, no selections made |
| Some | Indeterminate (dash) | Selects all visible items | Partial selection, complete the selection |
| All | Checked | Clears all selections | Full selection, allow deselection |
Check Box Caption
Available when Style is set to Check box.
Provides an optional text label displayed next to the checkbox. Use this to provide context about the selection action, such as Select all items or Toggle selection.
State Synchronization
The Selection Helper maintains real-time synchronization with the parent data widget:
- Changes made through the Selection Helper immediately reflect in individual row and item selections
- Individual row and item selection changes update the Selection Helper state accordingly
- Selection state persists across pagination when Keep selection is enabled in the data widget
Integration with Data Widgets
Compatible Selection Methods
The Selection Helper works with both Gallery and Data Grid 2 selection methods:
- Gallery: Users can select via item clicks and the Selection Helper
- Data Grid 2: Users can select via both individual checkboxes and row clicks, and the Selection Helper
Common Use Cases
Gallery Bulk Selection
Place a Selection Helper with default checkbox style in the Gallery header for simple select-all functionality in grid or list layouts.
Data Grid 2 Bulk Selection
Use the Selection Helper in Data Grid 2 headers for tabular data bulk operations.
Custom Bulk Operations Interface
Use custom style to integrate with your app's design system across both Gallery and Data Grid 2.
Administrative Data Management
Combine with action buttons that enable or disable based on selection state for both grid and list interfaces.