onParse

fires when data are ready to be processed by the component

void onParse(object driver,object data);
driverobjectthe data driver (some from webix.DataDriver collection)
dataobjectthe data object, for json - a raw json object, for xml - an xml document object

Example

view.data.attachEvent("onParse", function(driver, data){
    //for json data
    webix.message("Count of records "+data.length);
});

Details

The event can be used to preprocess data (but a better way is to use the scheme method). It is also a good way to read some extra attributes from incoming data.

See also
Back to top