No errors of hidden controls

Topics: Feature requests
Jul 22, 2013 at 1:54 PM
Hello

I use the InfobarMessageControl. My problem is that the errors of hidden controls are not displayed.

There are some validation errors in an special control. Users who are not logged in can not see this control. But the errors are still there and have to be displayed. To solve the errors they have to login. Then the control is displayed and the can solve the validation errors.

How to solve?
Jul 24, 2013 at 4:22 PM
Then add them to the viewmodel of the visible view.
Jul 25, 2013 at 7:02 AM
Add what? The errors?

How should this be possible. I can not move errors from one viewmodel to the other. And thats only why the view is hidden. Sorry but don't understand this answer.
Jul 25, 2013 at 4:35 PM
The validation. Because if you need validation X in view Y, then you probably need to implement it in view model Z. If you don't want to repeat the validation in multiple view models, write an IValidator outside your VM's which you can re-use.