ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
@Html.Awe().AjaxCheckboxList how to make this selection a required field
Title:
B
I
{code}
?
Any examples out there.. we have this control inside HTML.BeginForm @using (Html.BeginForm("TestEndPoint", "TestController", FormMethod.Post, new { area = "SI" })) { @Html.Awe().AjaxCheckboxList("Countries").CssClass("llist col-md-8").Multiselect(o => o.NoSelectClose()).Area("Ops").Controller("Country").Action("ActiveCountryList")<span style="color:red">*</span> <button id="exportFile" type="submit" class="btn btn-sm btn-success"> <i class="glyphicon glyphicon-save"></i> Download Country Results </button> }
Save Changes
Cancel
riya
asked at 26 Mar 2024
there's an example here: https://demo.aspnetawesome.com/Unobtrusive usually you would use a ViewModel and add a `[Required]` attribute on the Property (Countries in your case)
at 26 Mar 2024
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK