# dhtmlxmenu:event_onxls [DHX documentation]

DHTMLX Docs & Samples Explorer

Index
dhtmlxmenu
Event Handling

## onXLS Event

This event occurs before data loading from XML has started. onXLS event can call user-defined handler (if there is any):

            menu.attachEvent("onXLS", function(){});

In case of dynamic loading, onXLS event will be called every time before a system loads a certain part of data into the menu. Note: this event should be attached before the code line that calls loadXML() method.