Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Raghu on Oct 31, 2008 07:35
open dhtmlx forum
Grid pagination

Hi,
on clicking a link i am updating the grid and the code is below

mygrid.clearAll();
 mygrid.updateFromXML("orders/"+id+"/get_orders/",true,true);


But the dynamic loading is not working,even if there are more no of records
Even in case of pagination record info its showing the total count as 200 even if there are 1337.
For the first time i am uploading 200 records

Answer posted by Support on Oct 31, 2008 07:44
In case of reloading data from XML, the more stable way is to use 
mygrid.clearAll();
mygrid.load("orders/"+id+"/get_orders/",true,true);

updateFromXML has sense , which you need to update current dataset , not fully reload it. 
Please be sure that new loaded XML contains correct value of total_count attribute.