How can I hide the "Add Task" button but still keep the Gantt Chart editable?

1 Answer 47 Views
Gantt
Eli
Top achievements
Rank 1
Iron
Eli asked on 17 Jan 2022, 07:53 PM

I am attempting to keep the Gantt Chart editable, but remove the ability to create new tasks/child entries.

 

I have tried adding this CSS and it did not work:

  .k-gantt-actions .k-button {
            visibility: hidden;
        }

The button still shows.

 

Any help?

1 Answer, 1 is accepted

Sort by
0
Accepted
Yanislav
Telerik team
answered on 19 Jan 2022, 03:16 PM

Hello,

The following CSS rule should hides the Add Task button in the toolbar of the Gantt: 

<style>
    .k-gantt-create{
        display:none;
    }
</style>

Which will prevent the user from adding a new task.

Regards,
Yanislav
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Eli
Top achievements
Rank 1
Iron
commented on 20 Jan 2022, 09:33 PM

Thank you, this fixed it.
Tags
Gantt
Asked by
Eli
Top achievements
Rank 1
Iron
Answers by
Yanislav
Telerik team
Share this question
or