Stop dialog's doValidate alarm

Answered

In my dialog user have few way to do .. someAction. Each way can be switched by RadioButtons and have it's own validation logic. I want to reset validation alarm, when user select radioButton, but seems DialogWrapper hasn't api for that.

4 comments
Avatar
Vassiliy Kudryashov
Comment actions Permalink

You should call 'initValidation()' when user selects radioButton to clear previous validation markers and messages.

0
Comment actions Permalink

Vassiliy Kudryashov, i want to stop unnecessary computation(alarm), not to reset prev validation and start another.

0
Avatar
Vassiliy Kudryashov
Comment actions Permalink

Computation would be cheaper if you cache validation result. Also you can try setValidationDelay('some reasonable value more than default 300 ms').

1
Comment actions Permalink

I have done it with setValidationDelay, thx!

0

Please sign in to leave a comment.