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
100
Two Webdatagrids on page, required field validators causing infinite loop
posted

Hi I have two WebDataGrid controls on my page, and each one has a required field validator

If I click on required field on an empty row on grid1, and then click a required field on an empty row in grid2 it causes an infinite loop.

It looks like what it is doing is that the grid1 validator fires after the grid2 selection has been made so it tries to pull the focus back to the required field.  By pulling the focus off of grid2 it then fires the grid two required field validator.

So the validators fight each other to try to place focus on their respective required fields.

Any idea how to get around this scenario?

Parents
No Data
Reply
  • 20255
    Offline posted

    Hello,

    Thank you for contacting us.

    I have created a sample in order to invoke the issue, although I couldn't. Could you please have a look at the sample and let me know what I am missing from your scenario.

    It will be highly appreciated if you could make the necessary changes in order to reproduce the issue.

    Looking forward for your reply.

    RequireFieldValidatorExample.zip
Children