GetEvents on first data loading

Hi,
I’m using the scheduler with java and mysql database. I’d like to use the method getEvents on scheduler startup to obtain the complete displayed events list.

I tried to call the method either in the callback function of the load method and after the load method. In both cases it doesn’t work fine. With the callback approach the method has a strange behaviour: it works well just after some page refresh.

Any idea? Is there a way to know when all the events are loaded and displayed?
I can’t find anything usefull in the API.

Hi,
sorry for the delay in answerring.
You may add the follow code in client side:

scheduler.attachEvent("onXLE", function() {
    // data is loaded already
});

thank you very much for your answer it helped me using getEvents() function ! :smiley: