5 Answers, 1 is accepted
When the initial value is null, the value binding will attempt to update the field with the selected item from the dropdown/combobox and because the fields are numbers, they will not be updated correctly. You should either use the approach shown in the custom editor demo and bind the column to an object or create a custom binder as demonstrated in this code library.
Regards,Daniel
the Telerik team
Thanks for your response. Does "bind it to an object" mean something different than how it was done in my sample project? Do you guys have an estimate of when this will be fixed?
Thanks again,
Ben
This behavior is by design as specified in the value binding documentation.
Regarding you question about binding the combobox/dropdown to an object - you should add an object to your viewModel that holds the text and value, and bind the column to the object instead. I updated the project to demonstrate this approach for one of the properties.
Daniel
the Telerik team
The edit mode of the grid in my actual project is GridEditMode.PopUp, I don't know if that makes a difference. Either way, none of these solutions are really acceptable. They make the dropdown controls, and due to consistency, the entire suite, really inconvenient to use.
The behavior is explained in the value binding documentation from my first reply and is consistent when using the MVVM binding in or outside of the Grid. As mentioned in my first reply you can avoid it with a custom value binder as demonstrated in the code-library. The approach will be the same for popup editing mode. I attached the code-library project modified to use popup editing.
Daniel
the Telerik team