Hi
i have one event of 10 hours from 10AM to 8PM. i want to beak that event two parts by click.can i achieve this.
Hi,
you’ll have to manually create a second event, and change the date of orinal one.
Code might look following:[code]scheduler.attachEvent(“onClick”, function (id, e){
var ev = scheduler.getEvent(id);
var br = scheduler.getActionData(e).date;
var copy = {
text:ev.text,
start_date: br,
end_date:ev.end_date
};
ev.end_date = br;
scheduler.updateEvent(ev);
scheduler.addEvent(copy);
return true;
});[/code]
docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … ndata.html
docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … event.html