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

comboBox on a grid on edit, what's the big deal

1 Answer 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Taffy Lewis
Top achievements
Rank 1
Taffy Lewis asked on 20 Aug 2019, 05:44 PM

I have 2 comboBox(s) on a grid.  When the user clicks the edit button, I want the values that are in the comboBox to stay, currently they blank out.  Why is it doing this, and what's the simple solution.

 

 

1 Answer, 1 is accepted

Sort by
0
Alex Hajigeorgieva
Telerik team
answered on 22 Aug 2019, 11:57 AM
Hello, Guy,

When the grid is put into edit mode, it creates its editors for each column field.

If the binding does not happen and the Kendo UI ComboBox blanks out, it is most likely that the value type of the column field does not match the expected value type by the widget.

For example, if the widget's dataValueField is a string but the column is a number. Here is a simple runnable example demonstrating the described behaviour. This is the only scenario that seems to reproduce the described ComboBox bank out:

https://dojo.telerik.com/@bubblemaster/uHuYAnEj/2

Kind Regards,
Alex Hajigeorgieva
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Taffy Lewis
Top achievements
Rank 1
Answers by
Alex Hajigeorgieva
Telerik team
Share this question
or