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/incell.md
+22-16Lines changed: 22 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,10 +18,18 @@ Command columns and non-editable columns are skipped while tabbing.
18
18
19
19
The InCell edit mode provides a specific user experience and behaves differently than other edit modes. Please review the notes below to get a better understanding of these specifics.
20
20
21
+
## New Row Position
22
+
23
+
To control whether a newly added item appears at the top or bottom of the Gantt Tree, set the `NewRowPosition` parameter.
24
+
25
+
The `NewRowPosition` parameter accepts values from the `GanttTreeListNewRowPosition` enum:
26
+
27
+
-`Top` (default)—Inserts the new item at the top of the view.
28
+
-`Bottom`—Inserts the new item at the bottom of the view.
29
+
21
30
### Note
22
31
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.
23
32
24
-
25
33
>caption InCell Editing Example.
26
34
27
35
````RAZOR
@@ -68,20 +76,9 @@ It is up to the data access logic to save the data once it is changed in the dat
68
76
</TelerikGantt>
69
77
70
78
@code {
71
-
public DateTime SelectedDate { get; set; } = new DateTime(2019, 11, 11, 6, 0, 0);
Copy file name to clipboardExpand all lines: components/gantt/gantt-tree/editing/inline.md
+21-14Lines changed: 21 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,14 @@ You can also cancel the events by setting the `IsCancelled` property of the even
20
20
21
21
To enable Inline editing in the Gantt Tree, set its `TreeListEditMode` property to `GanttTreeListEditMode.Inline`, then handle the CRUD events as shown in the example below.
22
22
23
+
## New Row Position
24
+
25
+
To control whether a newly added item appears at the top or bottom of the Gantt Tree, set the `NewRowPosition` parameter.
26
+
27
+
The `NewRowPosition` parameter accepts values from the `GanttTreeListNewRowPosition` enum:
28
+
29
+
-`Top` (default)—Inserts the new item at the top of the view.
30
+
-`Bottom`—Inserts the new item at the bottom of the view.
23
31
24
32
>caption The Command buttons and the Gantt events let you handle data operations in Inline edit mode.
25
33
@@ -70,20 +78,9 @@ To enable Inline editing in the Gantt Tree, set its `TreeListEditMode` property
70
78
</TelerikGantt>
71
79
72
80
@code {
73
-
public DateTime SelectedDate { get; set; } = new DateTime(2019, 11, 11, 6, 0, 0);
Copy file name to clipboardExpand all lines: components/gantt/gantt-tree/editing/overview.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -298,6 +298,30 @@ You can customize the editors rendered in the Gantt Tree by providing the `Edito
298
298
299
299
*`IsCanceled`- a boolean field indicating whether the operation is to be prevented.
300
300
301
+
## New Row Position
302
+
303
+
You can control whether a newly added item appears at the top or bottom of the Gantt Tree. Use the [`NewRowPosition`](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.gantttreelistnewrowposition) parameter to specify the position. This parameter does not affect Popup edit mode, which always displays a dialog for new items.
304
+
305
+
This configuration is available in InCell and Inline edit modes. For more details, see the [Tree InCell Editing](slug:gant-tree-incell-editing#new-row-position) and [Tree Inline Editing](slug:gant-tree-inline-editing#new-row-position) articles.
306
+
307
+
> When you set `NewRowPosition` to `Bottom`, add the new item at the end of your data collection in the `OnCreate` event handler. When set to `Top`, insert the new item at the beginning of the collection. This ensures the new row appears in the correct position in the view after successfully creating the new record.
308
+
309
+
>caption Example of adding a new item to the Gantt based on the `NewRowPosition` value
310
+
311
+
<divclass="skip-repl"></div>
312
+
````C#
313
+
privatevoidOnCreate(GanttCreateEventArgsargs)
314
+
{
315
+
if (NewRowPosition==GanttTreeListNewRowPosition.Bottom)
Copy file name to clipboardExpand all lines: components/grid/editing/incell.md
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,17 @@ In in-cell edit mode, the `OnAdd` and `OnCreate` events fire immediately one aft
54
54
55
55
The above algorithm is different from [inline](slug:grid-editing-inline) and [popup](slug:grid-editing-popup) editing where new rows are only added to the data source after users populate them with valid values.
56
56
57
+
## New Row Position
58
+
59
+
You can control whether a newly added item appears at the top or bottom of the Grid. Use the `NewRowPosition` parameter to specify the position.
60
+
61
+
The `NewRowPosition` parameter accepts values from the `GridNewRowPosition` enum:
62
+
63
+
-`Top` (default)—Inserts the new item at the top of the view.
64
+
-`Bottom`—Inserts the new item at the bottom of the view.
65
+
66
+
For a complete example of how this feature works, see the following [example](slug:grid-editing-incell#basic).
67
+
57
68
## Integration with Other Features
58
69
59
70
Here is how the component behaves when the user tries to use add and edit operations together with other component features. Also check the [common information on this topic for all edit modes](slug:grid-editing-overview#integration-with-other-features).
Copy file name to clipboardExpand all lines: components/grid/editing/inline.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,15 @@ In inline edit mode, the Grid commands execute row by row and the corresponding
39
39
40
40
When validation is not satisfied, clicking the **Save**, **Delete** or **Add** command buttons have no effect, but users can still navigate between all input components in the row to complete the editing.
41
41
42
+
## New Row Position
43
+
44
+
You can control whether a newly added item appears at the top or bottom of the Grid. Use the `NewRowPosition` parameter to specify the position.
45
+
46
+
The `NewRowPosition` parameter accepts values from the `GridNewRowPosition` enum:
47
+
48
+
-`Top` (default)—Inserts the new item at the top of the view.
49
+
-`Bottom`—Inserts the new item at the bottom of the view.
50
+
42
51
## Integration with Other Features
43
52
44
53
Here is how the component behaves when the user tries to use add and edit operations together with other component features. Also check the [common information on this topic for all edit modes](slug:grid-editing-overview#integration-with-other-features).
Copy file name to clipboardExpand all lines: components/grid/editing/overview.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,32 @@ When editing a master row in a [hierarchy Grid](slug://components/grid/features/
205
205
206
206
Learn more integration details for the [inline](slug:grid-editing-inline#integration-with-other-features) and [in-cell](slug:grid-editing-incell#integration-with-other-features) edit modes.
207
207
208
+
209
+
## New Row Position
210
+
211
+
You can control whether a newly added item appears at the top or bottom of the Grid. Use the [`NewRowPosition`](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.gridnewrowposition) parameter to specify the position. This parameter does not affect Popup edit mode, which always displays a dialog for new items.
212
+
213
+
This configuration is available in InCell and Inline edit modes. For more details, see the [InCell Editing](slug:grid-editing-incell#new-row-position) and [Inline Editing](slug:grid-editing-inline#new-row-position) articles.
214
+
215
+
> When you set `NewRowPosition` to `Bottom`, add the new item at the end of your data collection in the `OnCreate` event handler. When set to `Top`, insert the new item at the beginning of the collection. This ensures the new row appears in the correct position in the view after successfully creating the new record.
216
+
217
+
>caption Example of adding a new item to the Grid based on the `NewRowPosition` value
Copy file name to clipboardExpand all lines: components/treelist/editing/incell.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,15 @@ In in-cell edit mode, the `OnAdd` and `OnCreate` events fire immediately one aft
54
54
55
55
The above algorithm is different from [inline](slug:treelist-editing-inline) and [popup](slug:treelist-editing-popup) editing where new rows are only added to the data source after users populate them with valid values.
56
56
57
+
## New Row Position
58
+
59
+
You can control whether a newly added item appears at the top or bottom of the TreeList. Use the `NewRowPosition` parameter to specify the position.
60
+
61
+
The `NewRowPosition` parameter accepts values from the `TreeListNewRowPosition` enum:
62
+
63
+
-`Top` (default)—Inserts the new item at the top of the view.
64
+
-`Bottom`—Inserts the new item at the bottom of the view.
65
+
57
66
## Integration with Other Features
58
67
59
68
Here is how the component behaves when the user tries to use add and edit operations together with other component features. Also check the [common information on this topic for all edit modes](slug:treelist-editing-overview#integration-with-other-features).
Copy file name to clipboardExpand all lines: components/treelist/editing/inline.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,15 @@ In inline edit mode, the TreeList commands execute row by row and the correspond
39
39
40
40
When validation is not satisfied, clicking the **Save**, **Delete** or **Add** command buttons has no effect, but users can still navigate between all input components in the row to complete the editing.
41
41
42
+
## New Row Position
43
+
44
+
You can control whether a newly added item appears at the top or bottom of the TreeList. Use the `NewRowPosition` parameter to specify the position. This parameter does not affect Popup edit mode, which always displays a dialog for new items.
45
+
46
+
The `NewRowPosition` parameter accepts values from the `TreeListNewRowPosition` enum:
47
+
48
+
-`Top` (default)—Inserts the new item at the top of the view.
49
+
-`Bottom`—Inserts the new item at the bottom of the view.
50
+
42
51
## Integration with Other Features
43
52
44
53
Here is how the component behaves when the user tries to use add and edit operations together with other component features. Also check the [common information on this topic for all edit modes](slug:treelist-editing-overview#integration-with-other-features).
Copy file name to clipboardExpand all lines: components/treelist/editing/overview.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -192,6 +192,31 @@ When editing a row with child items, it will collapse unless you override the `E
192
192
193
193
Learn more integration details for the [inline](slug:treelist-editing-inline#integration-with-other-features) and [in-cell](slug:treelist-editing-incell#integration-with-other-features) edit modes.
194
194
195
+
## New Row Position
196
+
197
+
You can control whether a newly added item appears at the top or bottom of the TreeList. Use the [`NewRowPosition`](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.treelistnewrowposition) parameter to specify the position. This parameter does not affect Popup edit mode, which always displays a dialog for new items.
198
+
199
+
This configuration is available in InCell and Inline edit modes. For more details, see the [InCell Editing](slug:treelist-editing-incell#new-row-position) and [Inline Editing](slug:treelist-editing-inline#new-row-position) articles.
200
+
201
+
> When you set `NewRowPosition` to `Bottom`, add the new item at the end of your data collection in the `OnCreate` event handler. When set to `Top`, insert the new item at the beginning of the collection. This ensures the new row appears in the correct position in the view after successfully creating the new record.
202
+
203
+
>caption Example of adding a new item to the TreeList based on the `NewRowPosition` value
204
+
205
+
<divclass="skip-repl"></div>
206
+
````C#
207
+
privatevoidOnCreate(TreeListCommandEventArgsargs)
208
+
{
209
+
if (NewRowPosition==TreeListNewRowPosition.Bottom)
0 commit comments