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?