Smart rendering on Grid with clear

Hello!
I’m using smart rendering, which works ok the first time

  objGrid[gridIndex].setInitWidthsP(Grid_Col_Widths[onIndex]);
  objGrid[gridIndex].setColTypes(Grid_Col_Types[onIndex]);
  objGrid[gridIndex].setColAlign(Grid_Col_Aligns[onIndex]);
  objGrid[gridIndex].setColSorting(Grid_Col_Sorts[onIndex]);
  objGrid[gridIndex].init();
  [b]objGrid[gridIndex].enableSmartRendering(true,100);[/b]
  objGrid[gridIndex].enableAlterCss("even","odd");
  objGrid[gridIndex].loadXML(objGridQString[gridIndex],GridDataLoaded);
  objGrid[gridIndex].attachEvent("onKeyPress",GridKeyP);
  objGrid[gridIndex].attachEvent("onBeforeSorting",GridSorted);
  objGrid[gridIndex].attachEvent("onFilterStart",GridFilter);
  objGrid[gridIndex].enableEditEvents(true,true,false);
  objGrid[gridIndex].attachEvent("onEditCell",GridEdit);

so the server call is done when the next 100 rows are needed, and everything works great;
but there’s the possibility, I will have to refresh the rows, because something changed;
so I do the clearing and load the data again

objGrid[actualGridIndex].[b]clearAll[/b]();
objGrid[actualGridIndex].[b]loadXML[/b](objGridQString[actualGridIndex],GridDataLoaded);

I would expect to read the first 100 rows (that works!) and, when I scroll down, the next 100 rows needed. But after the first 100 rows nothing happens: no call to the server;
it seems as the information of smart loading was lost in the meantime?
I also tried

objGrid[actualGridIndex].[b]clearAndLoad/b;

but the problem is still the same;
how do I manage to get smart reload working after a data rebind?
thanks!

I have the exact same question.

On the client side, I set

$this->srnd_buffer = 25; $this->srnd_pre_buffer = 25;
On the server side, I set

$grid->dynamic_loading(25);

On the first refresh, grid data could always be loaded normally part by part when scrolling down.

When I trigger the refresh manually after the first refresh, say, a click on toolbar button:
Before loading the new grid xml file, if I use

mygrid.clearAll(true);

with the parameter ‘true’, only 2 parts (50rows) could be loaded;
with the empty parameter clearAll(), or without ‘mygrid.clearAll()’, only first part could be loaded;
Leaving the rest of huge blank unloaded.

Could you help?
Thanks in advance.

Call to “mygrid.clearAll(true);” deletes all record from the grid.
To refresh data in the grid you need to have .load call after it

mygrid.clearAll(true); mygrid.load("data.php"); //must return total_count value, for dynamic loading

Thx Stanislav.

I do added the .load() method after clearing, otherwise the first part won’t be loaded.
And on the server side, raw database table is provided to the gridConnector.render_table()

Unfortunately the problem cannot be reconstructed locally.
The following code:
mygrid.clearAll();
mygrid.load(“data.php”);
works well for me with the dynamic loading.

If the problem still occurs for you pleas,e share with a demo link, where the issue can be reproduced.