New to Telerik UI for Blazor? Start a free 30-day trial

Gantt Tree Popup Editing

Updated on Oct 1, 2026

In this article:

Basics

Popup editing lets the user click an Edit command button on the row, and a popup shows up with the editable fields associated with a Gantt Task. They can then click the Save button in the dialog to submit the changes to the model. This fires the OnUpdate event where your code receives the updated model so you can work with the data (for example, to call the appropriate method of your service).

In a similar fashion, the Cancel and Delete command buttons and the Add toolbar button fire events to let you handle the data source operations.

You can also cancel the events by setting the IsCancelled property of the event arguments to true. This lets you prevent the user from editing certain records, inserting or deleting items, based on your application logic.

To enable Popup editing in the Gantt Tree, set its TreeListEditMode property to GanttTreeListEditMode.Popup, then handle the CRUD events as shown in the example below.

The popup editing dialog renders up to four tabs that allow you to edit:

Event Arguments

In Telerik UI for Blazor version 4.5.0, the GanttUpdateEventArgs received three new collections as fields. They are populated when you define Dependencies in the Gantt.

FieldTypeDescription
CreatedDependenciesList<GanttDependencyDescriptor>A collection of the newly created dependencies.
UpdatedDependenciesList<GanttDependencyDescriptor>A collection of the updated dependencies.
DeletedDependenciesList<GanttDependencyDescriptor>A collection of the deleted dependencies.

GanttDependencyDescriptor

The GanttDependencyDescriptor exposes four fields that describe the mutated dependency:

FieldTypeDescription
PredecessorIdobjectThe Id of the predecessor of the mutated dependency.
SuccessorIdobjectThe Id of the successor of the mutated dependency.
TypeGanttDependencyType enumThe type of the dependency.
DataItemobjectThe model associated with this dependency.

The Command buttons and the Gantt events let you handle data operations in Popup edit mode.

Example
View Source
Loading ...

It is up to the data access logic to save the data once it is changed in the data collection, or to revert changes. The example above showcases the events that allow you to do that. In a real application, the code for handling data operations may be entirely different.

Customization

The Gantt exposes options to customize the edit popup and its form. You can define your desired configuration in the GanttPopupEditSettings and GanttPopupEditFormSettings tags under the GanttSettings tag.

The GanttPopupEditSettings nested tag exposes the following parameters to allow popup customization:

ParameterTypeDescription
ClassstringThe CSS class of the edit popup
TitlestringThe title of the edit popup
WidthstringThe Width of the edit popup
MaxWidthstringThe maximum width of the window
MinWidthstringThe minimum width of the window
HeightstringThe height of edit popup
MaxHeightstringThe maximum height of the window
MinHeightstringThe minimum height of the window

The min/max options for the width and height apply to the initial rendering of the window and not browser resizing.

Edit Form Customization

The GanttPopupEditFormSettings nested tag exposes the following parameters to allow edit form customization:

ParameterTypeDescription
ColumnsintThe count of the columns
ColumnSpacingintThe column spacing
OrientationFormOrientation
(Vertical)
The orientation of the form. Takes a member of the FormOrientation enum:
- Horizontal
- Vertical

Customize the popup edit form

Example
View Source
Loading ...

See Also