DHTMLX Docs & Samples Explorer

Index
dhtmlxgrid
API Methods

### parse(data, call, type)

Required library edition:
Required library file: dhtmlxgrid.js

load data from local datasource (xml string, csv string, xml island, xml object, json objecs , javascript array). This method works in the synchronous mode.

- data - string or object
- type - data type (xml,json,jsarray,csv), optional, data threated as xml by default

       //parse grid from the xml string
       mygrid.parse(data);
       //parse grid from the csv string
       mygrid.parse(data,"csv");
       //parse grid from the javascript array
       mygrid.parse(data,"jsarray");
       //parse grid from the json string
       mygrid.parse(data,"json");

See also: load