Disable Edit option for Gantt tasks?

1 Answer 21 Views
Gantt
Grzesiek
Top achievements
Rank 2
Iron
Grzesiek asked on 25 Jul 2022, 09:06 PM

Hey,

Is there any option to disable it, so view is in readonly mode?

1 Answer, 1 is accepted

Sort by
0
Hristian Stefanov
Telerik team
answered on 28 Jul 2022, 10:55 AM

Hi Grzesiek,

You can disable editing in the Gantt Timeline by canceling the OnEdit event. Here is how:

async Task OnEdit(GanttEditEventArgs args)
{
    args.IsCancelled = true;
}

Let me know if we can assist further.

Regards,
Hristian Stefanov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Grzesiek
Top achievements
Rank 2
Iron
commented on 18 Nov 2022, 04:08 PM

Thank you Hristian, it works :)
Tags
Gantt
Asked by
Grzesiek
Top achievements
Rank 2
Iron
Answers by
Hristian Stefanov
Telerik team
Share this question
or