Data Grid — Data binding
Data DisplayExamples
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.
| 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] .
Request: GET /api/customers?page=1&pageSize=10