Check documentation for the latest version of dhtmlxSuite onXLE DHTMLX Docs

onXLE

fires when the data loading is finished and a component or data is rendered

void onXLE();

Example

var myComponent = new dhtmlXComponent();
 
myComponent.attachEvent("onXLS", function(){
    // before loading started
    // your code here
});
 
myComponent.attachEvent("onXLE", function(){
    // after loading ended and data rendered (before user's callback)
    // your code here
});
 
function doOnLoad() {
    // callback, optional
    // called after loading ended and data rendered (after onXLE)
};
 
myComponent.load("server/data.json", doOnLoad);
 
// or
myComponent.loadStruct("server/config.json", doOnLoad);

Details

used in load() and loadStruct()

load() usually loads data into component (for example menu or grid rows)

loadStruct() usually loads data to init component (for example tabs config for tabbar)

callback order: onXLS event => [request] => onXLE event => doOnLoad()

Back to top