Disabling validators in multipage

  • Thread starter Gabriel Lozano-Morán
  • Start date
G

Gabriel Lozano-Morán

When using the tabstrip control combined with a multipage (several pageview)
there is a problem when using validators. The problem is that validation
also occurs on the validators that are not on the currently selected
pageview of the multipage. To prevent this from happening I disable all the
validators and only enable the validators on the selected page but does not
look to me like the correct way of working.

Is there a better way to do this? Is there an easier way to make sure that
validators that are NOT on the visible pageview aren't validated?

Also this is what I am trying to do. I have large page with several logical
blocks and I have changed this into one tab for each logical block. Each
logical block is now a pageview in a multipage.

Thanks

Gabriel Lozano-Morán
 
P

Peter Blum

If you don't post back as the tabs switch, you have to write javascript code
to disable each validator on the panels not displayed. There is a
client-side function available although its poorly documented,
EnableValidator(). You can see it in the WebUIValidation.js file.

I built a replacement to Microsoft's validators that introduces a lot of new
capabilities including smart enabling. Each of my 25 validators has the
Enabler property where you establish a rule that indicates if the validator
is enabled based on some info on the page. In this case, you would set up a
rule that determines if the TextBox is visible or not before attempting to
validate. My replacement, "Professional Validation And More"
(http://www.peterblum.com/vam/home.aspx), supports many more browsers on the
client-side and provides all kinds of improvements for data entry web forms.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top