One state object describes the whole grid: views, dashboards, server-side data and per-user persistence, all in one component. Easy for your team to write, and just as easy for an AI agent.
Scripted prompts: no model runs here. They show the state an agent's tool call would write, applied to the live grid below.
{
"view": {
"columnSorting": [
{
"columnId": "salary",
"dir": "desc"
}
]
}
}Everything the grid shows is described by one plain, typed object. A person edits it through the UI; an agent edits it as JSON. Nothing to wire up, no imperative calls to get right.
import { Adaptable, type AdaptableUserState } from '@adaptabletools/datagrid-react'; import { data } from './data'; const defaultState: AdaptableUserState = { globalEntities: { availableColumns: { firstName: { field: 'firstName', dataType: 'text' }, salary: { field: 'salary', dataType: 'number' }, preferredLanguage: { field: 'preferredLanguage', dataType: 'text' }, }, }, dashboard: { top: { widgets: [{ id: 'views', type: 'view' }] } }, view: { currentViewId: 'default', views: [{ id: 'default', label: 'All rows' }], }, }; export default function App() { return ( <Adaptable.Provider adaptableId="my-grid" primaryKey="id" data={data} defaultState={defaultState} > <Adaptable.UI /> </Adaptable.Provider> ); }
Columns, views, dashboard, styles and alerts all live in one state object. An agent reads it, changes it, and the grid follows.
Filters, conditions and calculated columns are AdaptableQL expressions, which language models write well.
[salary] > 150000 AND [preferredLanguage] = "TypeScript"Every slice of state is a TypeScript type with a documented reference, so tools and agents can check what they write.
Persistence stores a JSON patch against your default state, so every change a person or an agent makes can be reviewed.
[{ "op": "replace", "path": ["view", "currentViewId"], … }]10,000 developers, loaded once in the browser or streamed from a live TDGP server. Search, sort, group and re-theme. Then click the grid and try it yourself.
The features data-heavy teams expect, as part of the same state object, rather than as plugins you wire up yourself.
Column order, sorting, grouping, aggregations and filters, all named as a view. The dashboard gives users the view picker, quick search and more.
State is persisted out of the box, to localStorage or your own backend, as a small JSON patch.
Sort, group, pivot and aggregate in the browser, or on your server with rows streamed in batches.
Local & remote dataAdaptableQLReadable strings stored in state, evaluated against your rows and kept in sync as the data changes.
AdaptableQLStyled & flashing cellsConditional styles, and cells that flash when their values change.
Styled cellsFilteringPer-column filters plus one AdaptableQL filter over the whole grid.
Column filtersQuick searchDerived values written in AdaptableQL, kept in sync with the data.
Calculated columnsMaster–detailExpand a row to show a detail area, typically another grid.
Master–detailPermissioningDecide which features are available, and to which users.
PermissioningTheming & accentsKeep the rows in the browser, or let your server do the heavy lifting. The views, the dashboard and the persisted state stay exactly the same.
Load the data once and every operation runs client-side: instant sorting, grouping, pivoting and aggregation.
data={rows}The same operations run on the server and rows stream in batches as users scroll. TDGP works out of the box.
dataSource={{ mode: 'server' }}Both modes ship in the box, and one accent preset re-tints the whole grid, including its menus and editors. Every value is a CSS variable you can override.
Install the package, describe your first view, and ship a complete data application.
npm install @adaptabletools/datagrid-react@canary