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

4 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    17 posts
    Member since:
    Oct 2014

    Posted 10 Mar 2015 Link to this post

    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). 
  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 12 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. rajeshraju
    rajeshraju avatar
    5 posts
    Member since:
    Jun 2016

    Posted 10 Jun in reply to Dimitar Terziev Link to this post

    Hello,

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

  5. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 13 Jun Link to this post

    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.
     
Back to Top
Kendo UI is VS 2017 Ready