...
If you are making your own column validator have a look at the source for UniqueValidator. You will realize that the values come in as a comma separated string.
Note |
---|
Currently, there cannot be used nested validators for the single You can just use a per-column validator validating a comma-separated input like described above. |
Example
In the example below we define a custom field that that has three columns and atleast one row. The user may add up to three rows.
The first column will contain a combo box to select one or more creature types. It also validates that the selected creatures must be unique. (Ex. Mew cannot be chosen twice)
If creatures Mew and Pikachu were selected, it would be saved in creature.type.1 and creature.type.2 respectively.
The second column is similar to the first column except this combo box allows you to select a colour for your creature.
The third column specifies a text field for the user to submit a name for the selected creature. For each individual text field it validates that it is not empty.
...