ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
AjaxCheckboxList - Prevent removing all
Title:
B
I
{code}
?
I see your sample https://demo.aspnetawesome.com/AjaxCheckboxListDemo#Multiselect-Combo I need to prevent user delete ALL items, At least one must remain ! How can do it ?
Save Changes
Cancel
Meccanica Rossi
asked at 05 Sep 2018
Answers
B
I
{code}
?
you can handle the `change` event and add a default item as the selected value when value is empty
Save Changes
Cancel
Omu
answered at 05 Sep 2018
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