This is a migrated thread and some comments may be shown as answers.

DropDownList value binding to the data source object property instead of the data source object

0 Answers 117 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 03 Jun 2013, 03:35 PM
It appears that when a user selects a value from a dropdown list, the selected data source object is being assigned to the model property instead of assigning the selected value property to the model property. I am able to correct this issue by binding to the change event of the view model and if the property of the model that is bound to the dropdown is changed then correct the value. However, I would like to avoid that type of if at all possible. Please let me know if you have any questions or need sample code.

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Eric
Top achievements
Rank 1
Share this question
or