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: controls/grid/data-editing/edit-mode/batch-editing/validation.md
+49-1Lines changed: 49 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,55 @@ position: 5
10
10
11
11
# Validation
12
12
13
-
Batch editing functionality supports validation by either using the **ColumnValidationSettings** or declaring a **GridTemplateColumn** and placing a validator in the template. Note that saving the changes or opening other cells \ rows for edit will be prevented when there is a validator that is not valid.
13
+
Batch editing functionality supports validation by either using the **ColumnValidationSettings** or declaring a **GridTemplateColumn** and placing a validator in the **EditItemTemplate** or **InsertItemTemplate**.
14
+
15
+
>note Saving the changes or opening other cells or rows for edit will be prevented when there is a validator that is not valid.
16
+
17
+
>caption Examples of a built-in required field validator and a custom validator
<asp:CustomValidator runat="server" ID="myValidator" EnableClientScript="true" ClientValidationFunction="myValidation" ControlToValidate="Textbox1" ErrorMessage="Enter more than three characters"></asp:CustomValidator>
0 commit comments