DHTMLX Docs & Samples Explorer

getEvents(from, to)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxscheduler.js

returns collection of events, which occurs in defined period

  • from {date object}
  • to {date object}

method will return an array of event objects, which started before *to* date, and finished after from date.

    var evs = scheduler.getEvents(Date(2009,1,10),Date(2009,1,25)); 
    for (var i=0; i<evs.length; i++)
          alert(evs[i].text);