Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Umair on May 29, 2009 07:02
open dhtmlx forum
DHTMLX Grid

Hi
I am using dhtmlx grid in which i populate records on the bases of current time and date. So i need to reload the data on every 15 mins. I use mygrid.clearAll(true); function and than call reload function that is similar to that which load data first time. it works fine. I want to ask that is it fine way to do it? because in real world the system would have very large data and there could be memory leakage problems. (From server i got data only once and store it in global variable)
Answer posted by dhxSupport on May 29, 2009 07:42
You can use setInterfal JavaScript function to execute necessary method with interval:
window.setInterval(function(){
  grid.clearAll();
  grid.load(url);
},interval);