Skip to content

Column settings

GridViewTable(
    settings=GridViewTableSettings(
        columns=True,
        order=True,
        visibility=True,
        pinning=True,
        sizing=True,
        presets=True,
    ),
)

When settings is set, the table renderer shows the gear control and column settings modal.

Features

Feature Behavior
Drag reorder SortableJS (host base template CDN)
Show/hide Per column or column group
Pin L/R Standalone columns
Named presets GridPreference.col_presets
Session state localStorage per grid_id

Simple table and AG-Grid share the same modal (GridView.createColumnSettings).

The renderer owns gear placement. GridViewButtonAction has no built-in action="table_settings" handler; use GridViewTable.settings and the rendered control rather than declaring a non-functional action.

Persistence layers

Layer Storage
Session localStorage — column layout, filters, quick search
Named presets GridPreference via POST api_grid_preferences

See Preferences.