DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### updateFromXML(url, insert_new, del_missed, afterCall)

Required library edition:
Required library file: dhtmlxgrid.js

refresh grid from XML ( doesnt work for buffering, tree grid or rows in smart rendering mode )

- 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

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

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

See also: clearAll, clearAndLoad

1) This is not actual for dhtmlxgrid 2.1+ , which works correctly in such scenarios