Gantt Cell Edit mode by code

1 Answer 22 Views
GanttView
Marco
Top achievements
Rank 1
Iron
Iron
Iron
Marco asked on 06 Jan 2022, 06:31 AM

I have a RadGanttView in which you can change the task in the columns. So if I click into the cells I can edit the value in it. After the Editing I do a validation. If this validation fails, a errormessage is shown. If this message is showing, I have to set the wrong cell in edit mode. But I wasn't able to do that.

How can I set a specific cell to edit-mode by code?

 

I already tried so call the TaskEdititngEvent, but didn't work as  excpected:

var editingEventArgs = new TaskEditingEventArgs(RadGanttView.TaskEditingEvent, neuerTask);
GanttDiagramm.RaiseEvent(editingEventArgs);

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 07 Jan 2022, 01:09 PM

Hello Marco,

Note that beginning the edit action will raise the TaskEditing event, not the opposite. Raising the event only won't do anything than calling the subscribed event handlers.

I am afraid that currently, there is no public API that allows entering the edit mode manually. However, there is a feature request to implement this, which you can follow in the feedback portal.

Regards,
Martin Ivanov
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/.

Marco
Top achievements
Rank 1
Iron
Iron
Iron
commented on 07 Jan 2022, 01:22 PM

Hello Martin

Thank you for the answer. Sadly it won't work, but I voted the feature request.

Regards Marco

Tags
GanttView
Asked by
Marco
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or