This is a migrated thread and some comments may be shown as answers.

Prevent Task from becoming a Summary

2 Answers 46 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 1
chris asked on 07 May 2016, 07:48 PM

I'm looking for a way to prevent a task from becoming a summary (by adding tasks, or moving/dropping tasks, as children) if certain conditions exist on that task.  For instance, if a task has had time reported against it, it cannot become a summary.

Can I prevent all the CRUD operations on the Gantt based on checking for a condition on the task that would become a summary?  Can I return the data to check as part of the Gantt query? Or would this have to be outside the control?

Thanks for any help or hints

2 Answers, 1 is accepted

Sort by
0
chris
Top achievements
Rank 1
answered on 09 May 2016, 08:24 PM
I should clarify that I would like to do this from the client.  I know that I can stop the DB updates on the server by inspecting the data during the TaskInsert/TaskUpdate/TaskDelete functions, but I'd like to stop the postback altogether and show a message to the user.
0
Accepted
Ivan Danchev
Telerik team
answered on 12 May 2016, 07:23 AM
Hello Chris,

A task cannot be prevented from becoming summary on the client. This would have been possible if there were a cancellable client-side TaskAdd event that you can cancel based on a certain condition, but such event is currently not available.

Regards,
Ivan Danchev
Telerik
Tags
Gantt
Asked by
chris
Top achievements
Rank 1
Answers by
chris
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or