glide-data-grid icon indicating copy to clipboard operation
glide-data-grid copied to clipboard

any real example of grid connected to api rest to show 1M results or directyl to sql db?

Open agaitan026 opened this issue 1 year ago • 4 comments

Hi theres any real example or tutorial on how connect datagrid to show data from api rest or even directly to sql? thank you

agaitan026 avatar Jan 06 '24 19:01 agaitan026

The glide-data-grid-source package has an example of a data source which asynchronously fetches paginated data. Look for the file use-async-data-source

jassmith avatar Jan 06 '24 20:01 jassmith

Have sample code? Sorry im new on this

agaitan026 avatar Jan 06 '24 20:01 agaitan026

I will write one up shortly. Been on my todo list anyway.

jassmith avatar Jan 06 '24 20:01 jassmith

https://github.com/glideapps/glide-data-grid/blob/e79e8983cc2e297206ee5185441ca4edd1dcba47/packages/core/src/docs/examples/server-side-data.stories.tsx#L160-L163

is a good example. I've used it myself to load data asynchronously from a web-worker.

BrianHung avatar Jan 17 '24 10:01 BrianHung