This question is locked. New answers and comments are not allowed.
Hi,
I couldn't find a solution to my problem, so I hope somebody can tell me where I went wrong..
I want to use a ComboBox as an element to choose a person's salutation like "Mr.", "Mrs.", etc. Some standard phrases just like "Mr." and "Mrs." shall be available in the DropDownList and if a salutation like "Prof. Dr. Dr. med. rer. nat." or something appears, it can be typed in.
I created that standard list and server-bound (.bindTo) it to the ComboBox. The salutations I choose or type in are perfectly saved as a string in my database. So basically, everythign works fine. BUT, it seems to depend where I use the ComboBox...
One time the ComboBox is used in a Grid as an EditorTemplate and everything works perfectly fine!
Then, I need to use it for the exact same functionality in a form on a view where personal data like the persons name etc.. shall be editable. The binding to the list of salutations works fine and if I type something in or choose one of the available options, they are submitted and saved correctly.
But in contrast to the ComboBox used in the Grid, the one used in the view does not show the viewmodel's property value.
I couldn't find a difference in the code, but mybe I just missed something..
Does anyone know what I am doing wrong?
I attached a small test project, which shows my problem..
Thanks in advance..!
I couldn't find a solution to my problem, so I hope somebody can tell me where I went wrong..
I want to use a ComboBox as an element to choose a person's salutation like "Mr.", "Mrs.", etc. Some standard phrases just like "Mr." and "Mrs." shall be available in the DropDownList and if a salutation like "Prof. Dr. Dr. med. rer. nat." or something appears, it can be typed in.
I created that standard list and server-bound (.bindTo) it to the ComboBox. The salutations I choose or type in are perfectly saved as a string in my database. So basically, everythign works fine. BUT, it seems to depend where I use the ComboBox...
One time the ComboBox is used in a Grid as an EditorTemplate and everything works perfectly fine!
Then, I need to use it for the exact same functionality in a form on a view where personal data like the persons name etc.. shall be editable. The binding to the list of salutations works fine and if I type something in or choose one of the available options, they are submitted and saved correctly.
But in contrast to the ComboBox used in the Grid, the one used in the view does not show the viewmodel's property value.
I couldn't find a difference in the code, but mybe I just missed something..
Does anyone know what I am doing wrong?
I attached a small test project, which shows my problem..
Thanks in advance..!