Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by sridhar on Sep 29, 2007 20:38
open dhtmlx forum
dhtmlgrid

How to refresh the dhtmlgrid with in the given time interval
Answer posted on Oct 01, 2007 10:29
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.