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: doc/en/components/grids/_shared/cell-editing.md
+15-32Lines changed: 15 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1176,14 +1176,12 @@ public webTreeGridCellEdit(args: IgrGridEditEventArgs): void {
1176
1176
<!-- ComponentEnd: TreeGrid -->
1177
1177
<!-- end: React -->
1178
1178
<!-- Blazor -->
1179
-
If the value entered in a cell under the **Age** column is below 18 or the value in the **HireDate** column is in the future, the editing will be cancelled and the user will be alerted to the cancellation.
1180
-
<!-- end: Blazor -->
1181
-
<!-- WebComponents, React -->
1179
+
<!-- WebComponents, React, Blazor -->
1182
1180
<!-- ComponentStart: HierarchicalGrid -->
1183
1181
If the value entered in a cell under the **Units On Order** column is larger than the available amount (the value under **Units in Stock**), the editing will be cancelled and the user will be alerted to the cancellation.
1184
1182
<!-- ComponentEnd: HierarchicalGrid -->
1185
1183
1186
-
<!-- end: WebComponents, React -->
1184
+
<!-- end: WebComponents, React, Blazor -->
1187
1185
1188
1186
<!-- Angular -->
1189
1187
@@ -1195,45 +1193,30 @@ Here, we are validating two columns. If the user tries to set an invalid value f
if (d.column!=null&&d.column.field=="UnitsOnOrder") {
1213
+
if (d.newValue>d.rowData.UnitsInStock) {
1214
+
d.cancel=true;
1215
+
alert("You cannot order more than the units in stock!")
1229
1216
}
1230
1217
}
1231
1218
}, false);
1232
1219
```
1233
-
<!-- Blazor -->
1234
-
Here, we are validating two columns. If the user tries to change an artist's **Debut** year or an album's **Launch Date**, the grid will not allow any dates that are greater than today.
0 commit comments