Hello,
I have a dhtmlx grid loading bulks of data over the internet with dynamic SmartRendering (loading of new data happens wvery 60 records).
My problem is that if the user clicks on a line on the grid and starts scrolling down KEEPING the arrow-down continuosly pressed, the scrolling happens so fast that new requests to the server are generated before old requests are rendered so that, at a certain point, the server is overwhelmed by requests and starts crawling.
Is there a way to disable new “loading” events until previous events have been rendered?! An older version of dhtmlxgrid, using enableBuffering (now obsolete) worked correctly, stopping events until the “loading” was completed.
Thank you
Stefano
P.S. Below the code used by me to load the grid.
// set autoloading for buffered listing
mygrid.setXMLAutoLoading(update_grid_url);
mygrid.enableMultiselect(true);
mygrid.enableSmartRendering(true, 61);
mygrid.enablePreRendering(61);
mygrid.attachEvent(“onDynXLS”, function(start,count){
loading();
return true;
});
mygrid.attachEvent(“onDataReady”, function(){
stop_loading();
return true;
});
mygrid.init();
mygrid.loadXML(update_grid_url);