Block scroll events when loading data with SmartRendering...

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);

The solution with the enabled prerendering works well for me in the latest dhtmlxGrid.
Please, try to download the latest version. If the problem still occurs for you please, open ticket at support.dhtmlx.com and provide with a complete demo/demo link, where the issue can be reconstructed.