ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Set default value to a dropdown from Input model
Title:
B
I
{code}
?
I have a dropdown filled with a list of items with Guid Id: I need one of the item to be the default selected in the dropdown. Is there a way to set a value in a EditorTemplate and use it with `[UIHint]` ? The issue is I don't what to set a o value in the @(Html.Awe().AjaxRadioList("").Odropdown().Value(???)) Do you please have a working sample ?
Save Changes
Cancel
vRITHNER
asked at 06 Mar 2019
if you have `EditorFor(o => o.Prop1)` you can set `input.Prop1 = value` in the controller
at 06 Mar 2019
Omu
My bad, I did that but choosed the wrong dropdown (OdropdownAutoFirstSelect) control [UIHint] Txs
at 06 Mar 2019
vRITHNER
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