clear buffer in dhtmlxgrid

I am using DHTMLXGrid with smartrendering. I have a total of 10lac data, so getting 50 records at a time. On scrolling down data gets loaded. All the scrolled data seems there in the page already rendered, therefore when scrolling up it does not hit the database to fetch the rows again.
Is it possible that I render a total of 1000 rows(50 + 50 + 50+…) , after 1000 rows are rendered, in next scrolling instead of being it 1050 I want it to be 1000 rows, whereas the first 50 rows are erased from the grid?
That means on scroll up or scroll down there should be database hit to fetch data…
is it possible??

Is there anything that can be done or it is not possible?

The main issue is to limit cache size…can it be done?

Such mode is not supported.

As possible workaround - you can enable srnd mode with dyn.loading and use

grid.enableSmartRendering(true, 50);
grid.attachEvent(“onDynXLS”, function(start, count){
if (start > 1000)
for (var i=0; i<start-1000; i++)
mygrid.rowsBuffer = null;
return true;

it will delete rows from the data storage, so next time they will be reloaded from server
if you want just to simplify dom you can use

grid.enableSmartRendering(true, 50);
grid.attachEvent(“onXLE”, function(){

as result it will have not more than 100 rows in the DOM