December 16, 2017, 10:36:04 PM

See more Support incidents in our old archived forum.

Author Topic: Remove ressourced assign for Milestone and Summary task  (Read 21 times)

duyanhth

  • Customers
  • Newbie
  • *
  • Posts: 1
Remove ressourced assign for Milestone and Summary task
« 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?

Rajagopal

  • RQ Members
  • Jr. Member
  • *
  • Posts: 91
Re: Remove ressourced assign for Milestone and Summary task
« Reply #1 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