I am currently using asp.net mvc and knockoutjs in a project, where i need to be able to make the validation as specified in asp.net mvc view model (using data annotation) to be able to shown in knockout binding. The thing is the microsoft unobstructive validation does not work after knockout binding and I do not wish to redeclare the validation in knockout validation manually.
Is there any existing solution/simple workaround? since i think this is quite a common issue as it is easy to maintain validation with mvc data annotation
If not, i am thinking to serialising the json (which take the validation data-annotation into account) and bind it into ko.mapping.fromJS but i do not know how to start. Perhaps someone has experience on this.
Whatever it is, my expected outcome is to not rewrite the data annotation validation in mvc in any other place.