I have a Tabset for entities (Orders, Customers, Users, etc.). Each tab of it has a nested TabSet as pane that show the list of all entities in the first tab and as soon as a record in that grid is clicked, another tab opens with the record's details.
What I would like to do in one of those grids (Orders), is to refresh its data every N minutes. My first guess is to use Javascript's native setInterval() method, but there's a couple of things to concern: refreshing should only be necessary if the nested tab is visible and in particular the tab with the grid in it (thus not if for instance the Customers tab is shown or a tab for an individual record of the Orders module).
Any ideas, tips?
What I would like to do in one of those grids (Orders), is to refresh its data every N minutes. My first guess is to use Javascript's native setInterval() method, but there's a couple of things to concern: refreshing should only be necessary if the nested tab is visible and in particular the tab with the grid in it (thus not if for instance the Customers tab is shown or a tab for an individual record of the Orders module).
Any ideas, tips?
Comment