Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sriram on Feb 02, 2009 05:53
open dhtmlx forum
autorefresh grid

Hi,
I was looking for a function which will update the grid every 2 seconds whenever there is a SQL db changes. i.e. even if the DB value changed outside of dhtmlx, it should update. or how to refresh only the changed rows/cells every 2 seconds?
Answer posted by Support on Feb 02, 2009 09:23
Full solution will require both server side and client side code, because dhtmlxgrid is fully client side it can't operate on server side
Component provides updateFromXML method - it can be used to load modification from server side

window.setInterval(function(){
    mygrid.updateFromXML(feed_url);
},2000)