Custom Validation on group of checkboxes <p>I'm trying to understand how I can validate a group of checkboxes.</p> <p>My Model:</p> <pre><code>[MinSelected(MinSelected = 1)] public IList&lt;CheckList&gt; MealsServed { get; set; } </code></pre> <p>I'd like to be able to create a custom validator that will ensure that at least 1 (or some other number) checkbox is selected. If not, display an <code>ErrorMessage</code>.</p> <pre><code>#region Validators public class MinSelectedAttribute : ValidationAttribute { public int MinSelected { get; set; } // what do I need to do here? } </code></pre> <p>Could someone help me out with this?</p>