Check documentation for the latest version of dhtmlxSuite load DHTMLX Docs

load

loads data from an external file ( xml, json, jsarray, csv )

promise load(string url,function call,string type);
urlstringurl to the external file
callfunctionafter loading callback function, optional, can be omitted
typestringtype of data (xml,csv,json,jsarray), optional, xml by default
promisea "promise" object

Example

//load grid from the external file
myTree.load("tree.xml");
//load grid, execute doAfterRefresh() function after grid was loaded
myTree.load("tree.xml",doAfterRefresh);
//load grid from the external csv file, 
//execute doAfterRefresh() function after grid was loaded
myTree.load("tree.csv",doAfterRefresh,"csv");

Change log

added in 4.4

Back to top