Check documentation for the latest version of dhtmlxSuite parse DHTMLX Docs

parse

loads data from a local data source (XML string, CSV string, XML island, XML object, JSON object, javascript array)

void parse(string|object data, [string type] );
datastring|objectthe data to load
typestringdata type (XML,JSON,JSarray,CSV), optional, data is treated as XML by default

Example

//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");

Details

the method works in the synchronous mode

Back to top