DHTMLX Docs & Samples Explorer

load(url, call, type)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxgrid.js

load data from external file ( xml, json, jsarray, csv )

  • url - url to external file
  • call - after loading callback function, optional, can be ommited
  • type - type of data (xml,csv,json,jsarray) , optional, xml by default
   //load grid from the external file
   mygrid.load("grid.xml");
   //load grid, execute doAfterRefresh() function after grid was loaded
   mygrid.load("grid.xml",doAfterRefresh);
   //load grid from the external csv file, execute doAfterRefresh() function after grid was loaded
   mygrid.load("grid.csv",doAfterRefresh,csv);

See also: loadCSVFile, loadCSVString, parse, preventIECaching