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

Custom creation of task items

2 Answers 42 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Felix
Top achievements
Rank 1
Felix asked on 05 Sep 2014, 12:28 PM
Hello,

I have two questions regarding the creation of task items:

1. Is it possible to restrict the creation of tasks to have e.g. only one root task or the depth of the task tree should only be 2. For me it was not possible to remove such tasks out of the tree after clicking "Add Task". Or is it possible to disable or enable the "Add Task"-Button or e.g. the "Add child"-Button?

2. Can I set the Id of the new created tasks by myself? If i try to set the task Id inside the "OnTaskInsert"-event, it doesn't affect the task Id which is shown inside the gantt control.

Thanks.

Regards,
Felix

2 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 08 Sep 2014, 11:31 AM
Hello Felix,

If you upgrade to the latest internal build, you will be able to use the TaskInsert event to both cancel the insert if the task is being added to a leaf task, and set the TaskID to your specified value.

Regards,
Bozhidar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Felix
Top achievements
Rank 1
answered on 08 Sep 2014, 02:56 PM
Hello Bozhidar,

thanks for your answer. I will try the new features and hope they work ;-)

Regards,
Felix
Tags
Gantt
Asked by
Felix
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Felix
Top achievements
Rank 1
Share this question
or