onBeforeRowDragMove

在网格中某行垂直拖动到新位置之前触发

boolean onBeforeRowDragMove(string|number id,string|number parent,number tindex);
idstring|number被拖动任务在网格中的id
parentstring|number新父节点的id
tindexnumber任务将在父分支中放置的目标索引位置
boolean指示是否继续执行默认事件动作(true)或停止(false

Example

gantt.attachEvent("onBeforeRowDragMove", function(id, parent, tindex){
    // return true/false;
});

Details

此事件可以被阻止。返回 false 将防止行被移动。

仅当选项 order_branch 设置为 "marker" 时,此事件才会触发。

See also
Back to top