loads data from a local data source (XML string, CSV string, XML island, XML object, JSON object, javascript array)
data | string|object | the data to load |
type | string | data type (XML,JSON,JSarray,CSV), optional, data is treated as XML by default |
//parse grid from the xml string
myTreeGrid.parse(data);
//parse grid from the csv string
myTreeGrid.parse(data,"csv");
//parse grid from the javascript array
myTreeGrid.parse(data,"jsarray");
//parse grid from the json string
myTreeGrid.parse(data,"json");
the method works in the synchronous mode
Back to top