DropDownListFor in editor template ignoring selected value - by AsherHardstark

Status : 

  Duplicate<br /><br />
		This item appears to be a duplicate of another existing Connect or internal item.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 774059 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/11/2012 11:53:40 AM
Access Restriction Public

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).
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)