Jump to first event in dHTMLXScheduler

Good morning,

I was wondering if is possible to ask the scheduler to ‘jump’ to the first event in the dataset?

As I understand it, the calender will show the current date upon loading. However, I would like it to show the first event, which may be many weeks in the future.

Thanks for your help.



you can try to use the following method:

var evs = scheduler.getEvents(new Date(), new Date(9999,1,1);

evs = evs.sort(function(a,b){ return a.start_date<b.start_date?1:-1;});