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

How can I disable "Add child", "Add Above", "Add below" menu items while adding new task?

3 Answers 264 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Iron
Dmitry asked on 10 Mar 2015, 09:16 AM
Hello,
How can I disable "Add child", "Add Above", "Add below" menu items while adding new task?

I want to leave only one "Add Task" button without additional menu.

If I set "messages: { actions: {addChild: "", insertBefore: "", insertAfter:""}}" empty menu items are displayed.

"change" event argument does not have "preventDefault" method to cancel task selecting.

Is it possible to leave only one "Add task button"? If it is not possible, how can I remove the button from the footer of the Gantt (I'll add my own button). 

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 12 Mar 2015, 07:43 AM
Hello,

In order to disabled the build-in functionality offered by the gantt toolbar, a custom toolbar should be used instead and the logic for task creation has to be implemented by the developer. Here is a dojo snippet showing such approach where the bottom "Add Task"  button is hidden and the one in the header toolbar is replaced by a custom one.

Regards,
Dimitar Terziev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
rajeshraju
Top achievements
Rank 1
answered on 10 Jun 2016, 07:09 AM

Hello,

            I tried same code in angular but it didnt work.Can u please provide a angular code fro the same thing.

0
Dimitar Terziev
Telerik team
answered on 13 Jun 2016, 06:37 AM
Hello,

Here is a modified version of the sample showing how to achieve the desired functionality in an angular environment.

Regards,
Dimitar Terziev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Gantt
Asked by
Dmitry
Top achievements
Rank 1
Iron
Answers by
Dimitar Terziev
Telerik team
rajeshraju
Top achievements
Rank 1
Share this question
or