Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jonathan on Jun 25, 2008 14:27
open dhtmlx forum
Grid Paging

When paging is it possible to force the refresh of the data from server when using XML? I have a server side script that obtains the XML from a database. If someone else changes the data on a previous page and the grid is paged back to that page it does not refresh the data from the server. It displays the data exactly as it was before moving to the next page.
Answer posted by Support on Jun 26, 2008 01:50
The grid doesn't reload already loaded data from server when current page changed.
You can use next code to implement necessary behavior.

mygrid.attachEvent("onBeforePageChanged",function(page){
    mygrid.updateFromXML("some.url?page="+page);
    return true;
});

In such case, each time when page changed, call to server side will be executed , which can load updated info for necessary page.