Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: UI Validation for multiple views in a region does not work

$
0
0
Thanks Gabriel for the the response.

You got it right, I have a Global Command which Invokes a FormValidator component (custom component). This component invokes the IDataErrorInfor.Validate(onActionCompletedCallback) on all the views loaded within the main Content Region including the Active and Inactive Views. The problem is the validation happens fine but the Validation.ErrorTemplate seems to be set only for the Active View and when I navigate to the Inactive Views, though the validation function is executed, I do not see the ErrorTemplates getting applied. There are times when I trigger the global command and the active view also does not get the ErrorTemplate set.

I am not sure if I am missing something or if there is a better way to handle this.

Regards,
Jeevan

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>