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
2. Handle the [taskEditDialogShowing](https://js.devexpress.com/jQuery/Documentation/ApiReference/UI_Components/dxGantt/Events/#taskEditDialogShowing) event to prevent the default dialog and display your custom dialog instead. Bind the form in the popup control to processed task data.
50
51
51
-
```jscript
52
+
```js
52
53
functiononTaskEditDialogShowing(e) {
53
54
e.cancel=true;
54
55
showTaskDetails(gantt.getTaskData(e.key))
@@ -58,11 +59,11 @@ This example demonstrates how display a custom "Task details" dialog instead of
58
59
if (form)
59
60
form.option('formData', data);
60
61
}
61
-
```
62
+
```
62
63
63
64
3. Call the [updateTask](https://js.devexpress.com/jQuery/Documentation/ApiReference/UI_Components/dxGantt/Methods/#updateTaskkey_data) and [assignResourceToTask](https://js.devexpress.com/jQuery/Documentation/ApiReference/UI_Components/dxGantt/Methods/#assignResourceToTaskresourceKey_taskKey)/[unassignResourceFromTask](https://js.devexpress.com/jQuery/Documentation/ApiReference/UI_Components/dxGantt/Methods/#unassignResourceFromTaskresourceKey_taskKey) methods to update Gantt data.
64
65
65
-
```jscript
66
+
```js
66
67
functiononConfirmClick(e) {
67
68
let result =form.validate();
68
69
if (result.isValid) {
@@ -73,7 +74,7 @@ This example demonstrates how display a custom "Task details" dialog instead of
73
74
popup.hide();
74
75
}
75
76
}
76
-
```
77
+
```
77
78
78
79
## Files to Review
79
80
@@ -95,7 +96,7 @@ This example demonstrates how display a custom "Task details" dialog instead of
0 commit comments