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.

0
4 comments
Avatar
Permanently deleted user

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

0

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

0
Avatar
Permanently deleted user

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

1

I have done it with setValidationDelay, thx!

0

Please sign in to leave a comment.