GigaTables / reactables

GigaTables is a ReactJS plug-in to help web-developers process table-data in applications and CMS, CRM, ERP or similar systems.
MIT License
144 stars 30 forks source link

enhancement: need refresh button #92

Closed wangfrombupt closed 6 years ago

wangfrombupt commented 6 years ago

The create, delete and edit buttons are fine. But I also need a refresh button so that users can update the table without having to hit the refresh button of the browser. I added a standalone refresh button as a workaround, but that's a temporal solution and made the source code harder to follow. Would you please add the refresh button in the GT source code? Thanks.

arthurkushman commented 6 years ago

Here is the functionality that can help u in this matter: https://github.com/GigaTables/reactables#user-content-ajax-autoload-period Or are there any other issues that may not fit with this feature?

wangfrombupt commented 6 years ago

Thx for the reply, but it doesn't solve my problem. One of my tables is created by a stored procedure of MySQL which may take half a minute to complete. I expect the user to refresh the table whenever he wants (because the user is the admin and he knows the right time to regenerate the table) and waits for the relatively long response time. But with autoload, there will be lots of unnecessary executions of the stored procedure which harm the performance of both client and server. So I think a refresh button as an option would be nice for some particular scenarios like this and will be helpful to other GT users. Please take this into consideration, thanks.