how to block the creation and editing only one line in the timeline??
{key:30, label:“Managers”, open: true, children: [
{key:40, label:“John Williams”},
{key:50, label:“David Miller”},
]},
how to block the creation and editing only one line in the timeline??
{key:30, label:“Managers”, open: true, children: [
{key:40, label:“John Williams”},
{key:50, label:“David Miller”},
]},
Try to add the code like next ( below code assumes that you are using section_id property for the timeline view )
[code]scheduler.attachEvent(“onBeforeEventChanged”, function(ev){
if (ev.section_id == 50) return false;
return true;
});
scheduler.attachEvent(“onBeforeDrag”, function(id){
if (id && scheduler.getEvent(id).section_id == 50) return false;
return true;
});
scheduler.attachEvent(“onDblClick”, function(id){
if (id && scheduler.getEvent(id).section_id == 50) return false;
return true;
});
[/code]