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"/>

Parents
  • 25665
    Offline posted

    Hello Abby,

    Thank you for contacting Infragistics. I am attaching a sample to this case that demonstrate how you can use the custom validator with the WebDataGrid. When I click off of the cell/add new row cell that has the WebDatePicker the validation function fires. Note I have removed the ig_res folder for file size to attach to the forms. What version of NetAdvantage are you using? What service release for that version are you using? What happens when you run my sample?

    WDG_Validation.zip
Reply Children
No Data