DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### load(url, call, type)

Required library edition:
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