RadiantQ Forum
Product => jQuery Gantt Package => Topic started by: duyanhth on December 07, 2017, 04:50:21 PM
-
I would like to disable resource assigning feature for Milestone and Summary task.
Is there any configuration for this similar as isParentEditable?
-
Duyanhth,
You can handle the editing for any column using "startEdit" function in "GanttTableOptions" when edit of a column starts.
Here is the code usage,
GanttTableOptions: {
columns: columns,
startEdit: function (cell, dataItem, column) {
// Check your condition here and return false to prevent the default behavior.
if ((dataItem.activity.IsMilestone || dataItem.IsParent) && column.title == "Resource")
return false;
}
}
Thanks,
Raja
-
thank you very much. It works