Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
895
How does Validation Work with Cell Editing/RowAdding?
posted

In my RowAdding I have a validator setup with a date picker. How do I get the validator to fire the event ClientValidationFunction? I am pretty sure I have it setup correctly. But when I add the new row, it does not stop me if I am missing a date.

 

<EditorProviders>

<ig:DatePickerProvider ID="editorDtpAutoDate"/>

</EditorProviders>

 

<ig:RowAdding Alignment="Top" Enabled="true">

<ColumnSettings>

<ig:RowAddingColumnSetting ColumnKey="colKeyAutoDate" EditorID="editorDtpAutoDate" ValidatorID="rfvEditorAutoDate"/>

</ColumnSettings>

 

.

.

.

.

<asp:CustomValidator ID="rfvEditorAutoDate" runat="server" ClientValidationFunction="CheckAutoDate"CssClass="validationControl" Display="Dynamic" ControlToValidate="grdAuto"ErrorMessage="A Date is Required." Font-Bold="True" Font-Size="Large" text="*" ValidateEmptyText="True"/>