How to validate entity on client side?


hi, have entities have properties have been decorated various annotations such required, stringlength etc. properties of new entity bound input fields in view. if don't enter in of fields, , click ok, properties null , hasvalidatonerrors false. how programatically validate properties of entity when no data entered using various annotations such error notification displayed in ui? thanks.

hi developer28,

you need to set binding notifyonexception=true , validatesonexceptions=true in xaml below

<textbox text="{binding a, mode=twoway, notifyonvalidationerror=true, validatesonexceptions=true}" />

 

best regards,

 



Silverlight  >  WCF RIA Services with Silverlight



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'