dhtmlgrid

How to refresh the dhtmlgrid with in the given time interval

The grid itself hasn’t any timeout related functionality but it can be done as

setInterval(function(){
    grid.clearAll();
    grid.loadXML(url);
},5000);


or

setInterval(function(){
    grid.updateFromXML(url);

},5000);

First solution fully reloads grid.
Second solution allows to update only specified rows.