React-data-grid: Support for external data loading?

Created on 14 Aug 2015  路  2Comments  路  Source: adazzle/react-data-grid

How would you use this component for server side generated data?

Most helpful comment

does the grid come with support for a spinner?

All 2 comments

you just need to wire up your data into the row getter
For most of our use cases, we use flux and a store, with a creator action to initially load the data in from the server, though no requirement to use flux, as long as your row getter can access the data, you'll be fine.

We haven't used it for infiite scroll style scenarios, though there is no reason you cant load the data in chunks. to do that you'd just kick off your load inside the rowGetter, so something like:

  • on load, load in a sensible initial chunk. Say 100 rows.
  • in your row getter if you are nearing the edge of your fetched data, go load some more
  • one note, you'll need to either know your estimated rowCount, or keep updating it as you fetch more data

does the grid come with support for a spinner?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

martinnov92 picture martinnov92  路  3Comments

soma83 picture soma83  路  4Comments

oliverwatkins picture oliverwatkins  路  4Comments

anil1712 picture anil1712  路  4Comments

JimLynchCodes picture JimLynchCodes  路  4Comments