Table Layouts

View as Markdown

Summary

  • Table Layouts manage Column-related info when the Grid is in standard (ie. non Pivot) mode
  • They can be created / edited at run-time through the Layout Wizard or configured at design-time

Find Out More

Concepts shared with all layouts — Layouts. Pivot mode — Pivot Layouts.

Table Layout Topics

TopicSummary
Column OrderColumn sequence in the layout
Column VisibilityWhich columns are shown or hidden
Column SizingWidths and auto-size behaviour
Column PinningLeft and right pinned columns
SortingLayout-managed column sorts
Column HeadersHeader display names in the layout
Other Table Layout PropertiesRow groups, aggregations, column and grid filters
Row SelectionSelection mode and checkboxes saved in the layout
Table Layout WizardRun-time wizard steps

Table Layouts show AG Grid columns in standard (i.e. non pivot) form.

Table Layouts can be provided, and configured, in AdapTable in 3 ways:

Table Layouts
Fork
  • This example contains 10 Table Layouts (each showing a different aspect of Layouts - many of which are explained more fully in other pages in this section):
    • Sorted Layout (the Current Layout by default) with sorting on 2 columns: Licence (ASC and also using a Custom Sort) and Name (DESC)
    • Custom Header Names where 2 columns have been renamed: Name is now 'Project', and Language is 'Programming Language'
    • Custom Column Widths where the Name, Language and Topics columns have all been given bespoke widths
    • Pinned Columns which has pinned the Name and Language columns to the left and Github Watchers column to the right
    • Grouping which has row-grouped AG Grid on the Language and then License columns
    • Aggregation - Language column is row-grouped and aggregations have been set for Open Issues (sum) & Closed Issues (max) columns
    • Filter - A Grid Filter has been applied together with 4 Column Filters
    • Summary - A Row Summary at Top of Grid shows Aggregations for Language, Issue Change, Github Stars, Github Watchers Columns
    • Special Cols - contains 3 Special Columns: Calculated Column (Total PRs), FreeText Column(Comments) and an Action Column (Add Star)
    • Column Visibility - sets 2 columns (License and Github Stars) to be invisible (but by listing them in Columns they are correctly placed when made visible)
Try It Out

Select different Layouts and see how the AG Grid columns are displayed differently

Loading demo…

Defining Table Layouts

When providing a Layout in Initial Adaptable State every property can be supplied if required.

There are many different properties that can be included in a Layout definition.

Hint

  • In this section we divide Layouts into many different types for convenience (e.g. Grouping, Filtered etc.)
  • But, in practice, any Layout can include any combination of these properties as required
Deep Dive

Anatomy of an AdapTable Table Layout

Table Layout UI Wizard

The Layout Wizard enables Table Layouts to be created and edited by run-time users.

It provides AdapTable users with a series of 8 steps to manage Table Layouts at run-time:

  • General Settings - particularly Layout Name
  • Columns - visibility, order, width, pinning and headers of Columns in the Layout can be set
  • Row Groups - which columns are Row Grouped
  • Aggregations - which columns will show aggregated info when in a Group Row
  • Row Summaries - which Row Summaries to display
  • Sorting - what Column Sorts are applied
  • Column Filters - sets the active Column Filters
  • Grid Filter - applies a Grid Filter
  • Summary - rich, visual summary of all settings applied in previous steps

Find Out More

See Using the Layout UI Wizard for more information