loads data from an external file ( xml, json, jsarray, csv )
url | string | url to the external file |
call | function | after loading callback function, optional, can be omitted |
type | string | type of data (xml,csv,json,jsarray), optional, xml by default |
promise | a "promise" object |
//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");
added in 4.4
Back to top