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

2 posts, 0 answers
  1. Taffy Lewis
    Taffy Lewis avatar
    10 posts
    Member since:
    Apr 2019

    Posted 20 Aug 2019 Link to this post

    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.



  2. Alex Hajigeorgieva
    Alex Hajigeorgieva avatar
    1081 posts

    Posted 22 Aug 2019 Link to this post

    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:

    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.
Back to Top