Refresh Grid in Layout without page refresh

Hello, trying to refresh the data on the grid every 30 seconds from MYsql. Tried using setInterval, but to no avail, any ideas team?

setInterval(function(){contactsGrid.load(“xml/contacts.php”)},3000);

thanks.

:mrgreen:

You should clear old data before the loading.
For example:

// 1 mygrid.clearAll() myfrid.load(url) // 2 mygrid.clearAndLoad(url) // 3 mygrid.updateFromXML(url)

Thanks again!