Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Chris on Sep 04, 2009 08:00
open dhtmlx forum
Scheduler Item Created and Menu

Couple of questions. First off is there are way to remove the menu that pops up on the left side of an activity when clicking it? Is there a way to add or remove buttons. Don't really need the edit in place behavior and would like to force a full detail edit. Second question. I have been trying to handle the onEventCreated event. The only thing I really need from this event is the start and end time of the event but I don't see that populated on the event object parameter. Is there a way to get these values?

Thanks for your help.
Answer posted by Support on Sep 07, 2009 04:05
>> First off is there are way to remove the menu that pops up on the left side of an activity when clicking it
You can switch all scheduler to readonly mode ( scheduler.config.readonly = true; ), or just block onClick event
        scheduler.attachEvent("onClick",function(){ return false; });

>>Is there a way to add or remove buttons.
http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:settings#selection_menus

>>Don't really need the edit in place behavior and would like to force a full detail edit
http://www.dhtmlx.com/dhxdocs/doku.php?id=dhtmlxscheduler:settings#control
scheduler.config.details_on_dblclick = true;
scheduler.config.details_on_create = true;

>>trying to handle the onEventCreated event.
If you need to catch the moment when event fully created you need to use onEventAdded
In any case, dates can be fetched as
   scheduler.attachEvent("onEventCreated",function(id){ 
            var start = scheduler.getEvent(id).start_date;
            var end = scheduler.getEvent(id).end_date;

            return true;
   })