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)

You can use setInterfal JavaScript function to execute necessary method with interval:
window.setInterval(function(){
grid.clearAll();
grid.load(url);
},interval);