DHTMLX Docs & Samples Explorer

parse(data, call, type)

Required library edition: This method works with any edition of DHTMLX library
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