ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How to preselect some values in the checkbox list?
Title:
B
I
{code}
?
I have AjaxChecjBoxList where in I can selected multiple values. @(Html.Awe().AjaxCheckboxListFor(x => x.ExtraTestNoiseName) .Parameter("test", "extranoisetest") .Multiselect(o => o.Caption("Select extra 10% noise test(s)")) .DataFunc("LoadTestNames") .CssClass("form-control")) How can I have certain values selected right from the start ?
Save Changes
Cancel
test
asked at 10 Apr 2017
give it a value, in the controller `model.ExtraTestNoiseName = new[] {key1, key2}; return View(model);`
at 10 Apr 2017
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