You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/gantt/gantt-tree/editing/popup.md
+142Lines changed: 142 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,13 @@ position: 15
10
10
11
11
# Gantt Tree Popup Editing
12
12
13
+
In this article:
14
+
15
+
*[Basics](#basics)
16
+
*[Customization](#customization)
17
+
18
+
## Basics
19
+
13
20
Popup editing lets the user click an [Edit command button]({%slug components/grid/columns/command%}) 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).
14
21
15
22
In a similar fashion, the `Cancel`, `Delete` command buttons and the `Add` toolbar button fire events to let you handle the data source operations.
@@ -247,6 +254,141 @@ To enable PopUp editing in the Gantt Tree, set its `TreeListEditMode` property t
247
254
248
255
>note 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.
249
256
257
+
## Customization
258
+
259
+
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.
260
+
261
+
### Popup Customization
262
+
263
+
The `GanttPopupEditSettings` nested tag exposes the following parameters to allow popup customization:
The `GanttPopupEditFormSettings` nested tag exposes the following parameters to allow edit form customization:
270
+
271
+
Parameter | Type | Description
272
+
---------|----------|---------
273
+
`Columns` | `int` | The count of the columns
274
+
`ColumnSpacing` | `int` | The column spacing
275
+
`Orientation` | `FormOrientation` <br/> (`Vertical`) | The orientation of the form. Takes a member of the `FormOrientation` enum: <br/> - `Horizontal` <br/> - `Vertical`
276
+
277
+
>caption Customize the popup edit form
278
+
279
+
````CSHTML
280
+
@*The snippet focuses on the popup edit form customization. CRUD events are not handled for brevity*@
0 commit comments