Could you help me with the problem? Assume I had a form with the table of some stuff (products for example), with the possibility of add New product and Edit existing product. The requirement is to have add row is always be visible. Than i have a problem when, I click on the 'Edit' product, so that I have two inputs( one for edit and one for add ). When I posted the form to the server by choosing Save editable row, i wanted to validate only edit row and to do nothing with Add row (which is empty for a while).
And the problem is that default MVC validation is applied on the my Add row inputs, its controls become red, and property validation message appear. I don't want to see them, because it is really confusing. Actually i can't understand why this happens. Possibly because MVC can not cast empty string to DECIMAL (the type in the VIEWMODEL to which input is refered)