conditionally draggable Event Bar

I am using the DHMTLX JavaPlanner plugin.

I am trying to conditionally enable Event Bars to be draggable. I’d like to tie into a Javascript callback, introspect the event’s data, and then either enable or disable draggable functionality.

Found the answer to my own question.

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

[code]scheduler.attachEvent(“onBeforeDrag”, function (event_id, mode, native_event_object){
var ev = scheduler.getEvent(id)

      switch(ev.status){
        case "Scheduled":
          return true;
        case "In Process":
          return false;
        case "Completed":
          return false;
      }
    });[/code]