Schedule Units View auto SectionID

Hi

I have been using DHTMLxScheduler for sometime and am passing server side XML files to the client no problem (for an in-house bookings diary).

Recently I have been asked to present the same data on a units page with 9 columns (available booking slots per hour) but my data is loading each entry into column 1 (SectionID 1). Unfortunately the requirement is for all adjacent entries (within the same section/column) to automatically move into the next section.

Because the server side code wasn’t into written with Sections/or indeed the units view in mind (basically I don’t want to have to re-write extensive code) is there presently the ability to client side achieve this ?

many thanks
Andy

Hi,
you can split events between the columns using client side api
Each time event is loaded, or modified you can get the list of events that happens at the same time

var evs = scheduler.getEvents(event.start_date, event.end_date);

And check if there is an event that happens in a same section. If so - assign current event to another section. Probably you can use a collision extension for tracking event conflicts

docs.dhtmlx.com/scheduler/api__s … vents.html

docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … event.html