In dhtmlxScheduler Timeline After drag and drop i want to call ajax page instead of display Lightbox.
scheduler.show_cover=function(){ . My ajax function…}
Inside this function i calling my ajax page and it’s working fine . In ajax page i want to get dragged start ,end time and section id .
What is the parameter i have to use here to get the above values…
Hi,
instead of overwriting the method, try using onBeforeLightbox event. In handler you’ll have access to all values of the event and will be able to block the default lightboxscheduler.attachEvent("onBeforeLightbox", function (id){
if(scheduler.getState().new_event){//if create new event
var ev = scheduler.getEvent(id);// ev.start_date, ev.end_date, ev.section_id....
... do ajax
return false;//false to prevent default lightbox
}
return true;
});
docs.dhtmlx.com/scheduler/api__s … event.html
docs.dhtmlx.com/scheduler/api__s … state.html