Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sunil on Jun 28, 2009 23:59
open dhtmlx forum
updateFromXML to append rows

Hi,

Need to know how can I append rows using updateFromXML.

Ex: load 50 rows from one XML file, and then onclick of a button load 50 more rows from another XML file... (XML structure is same)
Answer posted by dhxSupport on Jun 29, 2009 00:24
You can use: mygrid.updateFromXML("grid_updated.xml",true);
updateFromXML(url, insert_new, del_missed, afterCall) method has parameters:
url - url to the file
insert_new - insert new items (optional, true by default)
del_missed - delete missed rows (optional, false by default)
afterCall - function, will be executed after refresh completted

Note: this functionality doesn't work for buffering, tree grid, or rows in smart rendering mode.