Grid edit - validation

Jul 11, 2009 at 7:25 AM

Hi,
    How can we attach validators for multiple fields with same name (like emp1_name, emp2_name). We are creating validators using prefix, but only one validator will get attached at a time.

    The fields with ID "name" is dynamically created, so we need to attach validator for each of the fields. We have added prefix and dynamically creating Html.ClientSideValidation which will create multiple xVal.AttachValidator of which only one will get attached.

    how to solve this situation ?

Thanks in advance,

Prasanth

Jul 13, 2009 at 2:47 AM

I saw this To Do - "Document example of reusing a rules config for each element in a list (e.g., for an editable grid)". If you could please provide some guidance on how to implement this, it would be of great help.

Thanks,
Prasanth