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/grid/editing/overview.md
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@ This section explains the available events and command buttons that you need to
27
27
28
28
List of the available events:
29
29
30
-
*`OnCreate` - fires when the `Save`[command button]({%slug components/grid/columns/command%}) button for a newly added item is clicked. Cancellable (cancelling it keeps the grid in Insert mode).
30
+
*`OnAdd` - fires when the `Add`[command button]({%slug components/grid/columns/command%}) for a newly added item is clicked. The event is cancellable.
31
+
*`OnCreate` - fires when the `Save`[command button]({%slug components/grid/columns/command%}) for a newly added item is clicked. Cancellable (cancelling it keeps the grid in Insert mode).
31
32
*`OnUpdate` - fires when the `Save` command button is clicked on an existing item. Cancellable (cancelling it keeps the grid in Edit mode). The model reference is a copy of the original data source item.
32
33
*`OnDelete` - fires when the `Delete` command button is clicked. You can also display a [delete confirmation dialog]({%slug grid-delete-confirmation%}) before the deletion.
33
34
*`OnEdit` - fires when the user is about to enter edit mode for an existing row. Cancellable (cancelling it prevents the item from opening for editing).
@@ -60,7 +61,7 @@ Editing is cancelled for the first two records.
60
61
<strong>There is a deliberate delay</strong> in the data source operations in this example to mimic real life delays and to showcase the async nature of the calls.
Copy file name to clipboardExpand all lines: components/grid/events.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ This article explains the events available in the Telerik Grid for Blazor. They
31
31
32
32
## CUD Events
33
33
34
-
The `OnCreate`, `OnUpdate` and `OnDelete` events let you get the data item that the user changed so you can transfer the user action to the actual data source.
34
+
The `OnAdd`, `OnCreate`, `OnUpdate` and `OnDelete` events let you get the data item that the user changed so you can transfer the user action to the actual data source.
35
35
36
36
The `OnEdit` and `OnCancel` events let you respond to user actions - when they want to edit an item and when the want to cancel changes on an item they have been editing. You can use them to, for example, prevent editing of certain items based on some condition.
Copy file name to clipboardExpand all lines: components/treelist/editing/overview.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@ This section explains the available events and command buttons that you need to
27
27
28
28
List of the available events:
29
29
30
-
*`OnCreate` - fires when the `Save`[command button]({%slug treelist-columns-command%}) button for a newly added item is clicked. Cancellable.
30
+
*`OnAdd` - fires when the `Add`[command button]({%slug treelist-columns-command%}) for a newly added item is clicked. Cancellable.
31
+
*`OnCreate` - fires when the `Save`[command button]({%slug treelist-columns-command%}) for a newly added item is clicked. Cancellable.
31
32
*`OnUpdate` - fires when the `Save` command button is clicked on an existing item. Cancellable. The model reference is a copy of the original data source item.
32
33
*`OnDelete` - fires when the `Delete` command button is clicked. The event is cancellable, and you can also display a [delete confirmation dialog]({%slug treelist-delete-confirmation%}) before the deletion.
33
34
*`OnEdit` - fires when the user is about to enter edit mode for an existing row. Cancellable.
@@ -64,6 +65,7 @@ Editing is cancelled for the first record.
64
65
65
66
<TelerikTreeList Data="@Data"
66
67
EditMode="@TreeListEditMode.Inline"
68
+
OnAdd="@AddItem"
67
69
OnUpdate="@UpdateItem"
68
70
OnDelete="@DeleteItem"
69
71
OnCreate="@CreateItem"
@@ -97,6 +99,15 @@ Editing is cancelled for the first record.
Copy file name to clipboardExpand all lines: components/treelist/events.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ This article explains the events available in the Telerik TreeList for Blazor. T
28
28
29
29
## CUD Events
30
30
31
-
The `OnCreate`, `OnUpdate` and `OnDelete` events let you get the data item that the user changed so you can transfer the user action to the actual data source.
31
+
The `OnAdd`, `OnCreate`, `OnUpdate` and `OnDelete` events let you get the data item that the user changed so you can transfer the user action to the actual data source.
32
32
33
33
The `OnEdit` and `OnCancel` events let you respond to user actions - when they want to edit an item and when they want to cancel changes on an item they have been editing. You can use them to, for example, prevent editing of certain items based on some condition.
0 commit comments