Check documentation for the latest version of dhtmlxSuite updateFromXML DHTMLX Docs

updateFromXML

refreshes grid from XML (doesn't work for buffering, tree grid or rows in smart rendering mode)

void updateFromXML(string url,boolean insert_new,boolean del_missed,function afterCall);
urlstringurl of the file
insert_newbooleaninsert new items (optional, true by default)
del_missedbooleandelete missed rows (optional, false by default)
afterCallfunctionthe function that will be executed after refresh is completted

Example

//update grid from xml
mygrid.updateFromXML("grid_updated.xml");
//update grid from xml, insert new items, delete missed rows, 
//execute the doAfterUpdate() function after rows have been updated
mygrid.updateFromXML("grid_updated.xml",true,true,doAfterUpdate);

Back to top