Home Dashboard Directory Help
Search

DropDownListFor in editor template ignoring selected value by AsherHardstark


Status: 

Closed
 as Duplicate Help for as Duplicate


2
0
Sign in
to vote
Type: Bug
ID: 774059
Opened: 12/11/2012 11:53:40 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

If you use DropDownListFor in an editor template, the selected value of the dropdown as specified in the model is ignored. For example, if in an editor template I do this:

@Html.DropDownListFor(m => m.SelectedItem, Model.Items)

and Model.Items is "X", "Y", and "Z" and Model.SelectedItem is "Z", we would expect the dropdown to show "Z" selected when the page is rendered. Instead, "X" is selected (the default value).
Details
Sign in to post a comment.
Posted by Microsoft on 12/11/2012 at 10:59 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 12/11/2012 at 12:51 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.