Column Groups Expanded Collapsed Behaviour
Summary
- Column Groups in AdapTable can be configured to open as Expanded or Collapsed
- Users are able to set exceptions to the default for certain Column Groups
Developers can configure, when a Layout loads, the collapsed / expanded behaviour for Column Groups.
This is done on a per-Layout basis using the ColumnGroupValues property in the Base Layout object.
Note
Something very similar can be done for Row Groups using the (almost identical) RowGroupValues property
Deep Dive
Understanding the ColumnGroupValues object
There are 4 posible use cases:
| Use Case | Default Behaviour | Provide Exceptions |
|---|---|---|
| All Groups are exanded | always-expanded | ❌ |
| All Groups are collapsed | always-collapsed | ❌ |
| All Groups are expanded, but exceptions listed | expanded | ✅ |
| All Groups are collapsed, but exceptions listed | collapsed | ✅ |
Column Groups: Expanded and Collapsed
- This example illustrates the different options for Expanding / Collapsing Column Groups. We provide 3 Column Groups:
Github- which showsGithub Startswhen expanded andGithub Watcherswhen closedIssues & PRs- which shows the 2 Issues columns when expanded and the 2 PRs columns when closedDates- which showsCreatedwhen expanded andUpdatedandPushedwhen closed
- We also provide 4 Table Layouts which demonstrate the different options:
Always Expanded- has ColumnGroupDefaultBehavior set toalways-expandedAlways Collapsed- has ColumnGroupDefaultBehavior set toalways-collapsedCollapsed Exceptions- all Column Groups collapsed with exception ofIssues & PRsExpanded Exceptions- all Column Groups expanded with exception ofIssues & PRs
Pivot Layouts
The same behaviour is also available for the Pivot Column Groups which are displayed in Pivot Layouts.
Find Out More
See Pivot Layout: Pivot Column Groups for more detailed information and a demo (similar to the one above)