The issue I am facing is focused on the cssDropDownEditor function on line 190. The version of the code without validation works as desired (simply remove the name attribute when creating the combobox line 191):
The version with validation does not work as desired. Actually the viewModel is not updated. To test it modify line 191 to add a name attribute as follows:
The reason is the following:
- The combobox creates an input named style_name_input;
- The grid uses this name to bind this input as follows data-bind="value: style_name_input", which obviously does not exist in the viewModel,
- therefore data-binding with the viewModel does not work when specifying a name as required for validation.