still old values after page reload (in database new values)

Hello… Please help me with this problem.

I have grid:

grid = new dhtmlXGridObject(“gridbox”);
grid.setImagePath("/codebase/imgs/");
grid.setHeader(“a,b,c”);
grid.setInitWidths(“70,80,*”);
grid.setColAlign(“center,center,left”);
grid.setColTypes(“ro,edtxt,ro”);
grid.setColSorting(“int,str,str”);
grid.setSkin(“dhx_skyblue”);
grid.init();
grid.enableSmartRendering(true);
grid.loadXML(“pb_xml.php”);
function not_empty(value) {return value != “”;}
myDataProcessor = new dataProcessor(“pb_gridedit.php”);
myDataProcessor.setVerificator(2, not_empty);
myDataProcessor.init(grid);

Grid is initialized ok and dataprocessor works. I change value in editable cell and it saves to database correctly. But after, if I reload page, in the cell there is still old value. I have to change tab (grid is in tabbar) and reload again and after this, cell has new value. Why not only after reload page??

Thanks for your advice

maybe the problem is with grid.loadXML(“pb_xml.php”);

if I reload page, where the grid is, there is still old values

if I reload pb_xml.php (it returns xml page with rows), and then reload page with grid, there is new values

is the problem in refreshing XML file??

Which code you are using for grid reloading ? It must be something like next

grid.clearAll();
grid.loadXML(“pb_xml.php”);

Also, the issue can be caused by caching. Try to change the data loading code as

grid.loadXML(“pb_xml.php?uid=”+grid.uid());

Yes, it was because of caching. Thank for solve.

grid.init();
grid.clearAll();
grid.loadXML(“pb_xml.php?v=”+grid.uid());