Skip to content

Data Grid — Data binding

Data Display

Bind a local array and let the grid sort, filter and page it, or switch to server mode: the grid emits the query and you load one page from your backend.

Examples

Local data

Bind an array to [dataSource] (the default dataMode="local" ): the grid sorts, filters and pages it in the browser. [loading] shows skeleton rows and emptyText replaces the empty table.

No filters active
Dune Frank Herbert 1965
Neuromancer William Gibson 1984
Foundation Isaac Asimov 1951
Hyperion Dan Simmons 1989
The Left Hand of Darkness Ursula K. Le Guin 1969

Server data

With dataMode="server" the grid does not process rows. Each sort, filter, search or page change emits stateChange with a GridServerState ; buildApiParams turns it into query parameters. Load that page, then bind the rows and [totalRows] .

No filters active

Request: GET /api/customers?page=1&pageSize=10