This question is locked. New answers and comments are not allowed.
I've got a problem with server side binding on the combobox.
A select list is created in the controller an it is passed a selected value. The list is passed to the view via a view model and then binded to the combobox via BindTo. The correct item is displayed/selected in the combobox when open the page. The problem is that when I open the combobox it shows the text "System.Web.Mvc.SelectList" which isn't a value that exists in the SelectList!
If I view the source I see that the combobox is initialized with "System.Web.Mvc.SelectList" as the selected value?!
Is this a bug or am I missing something?
I've attached a small sample project that visualizes the problem.
Andy
A select list is created in the controller an it is passed a selected value. The list is passed to the view via a view model and then binded to the combobox via BindTo. The correct item is displayed/selected in the combobox when open the page. The problem is that when I open the combobox it shows the text "System.Web.Mvc.SelectList" which isn't a value that exists in the SelectList!
If I view the source I see that the combobox is initialized with "System.Web.Mvc.SelectList" as the selected value?!
Is this a bug or am I missing something?
I've attached a small sample project that visualizes the problem.
Andy