Skip to main content

Reload-all-grids

You can add a button to reload the grid dynamically. By default, ArtiGrid.reload() refreshes all grids, but you can also specify a particular table when working in table mode.


<button id="reloadGrid" class="btn btn-primary">
🔄 Recargar grilla
</button>

<script>
document.addEventListener('DOMContentLoaded', () => {

document.getElementById('reloadGrid').addEventListener('click', () => {
ArtiGrid.reload();

//ArtiGrid.reload("table_name");
});

});
</script>