RadiantQ Forum

Product => jQuery Gantt Package => Topic started by: duyanhth on December 07, 2017, 04:50:21 PM

Title: Remove ressourced assign for Milestone and Summary task
Post 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?
Title: Re: Remove ressourced assign for Milestone and Summary task
Post by: Rajagopal on December 08, 2017, 07:51:55 AM
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,
Code: [Select]
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
Title: Re: Remove ressourced assign for Milestone and Summary task
Post by: duyanhth on December 17, 2017, 07:06:01 AM
thank you very much. It works