Premium forums

DropDownList in Grid Editor completes with value and not text

  • Dave
    Dave avatar

    01 May 2012 (Link to this post)

    Hi,

    I am trying to add a new row to a grid using the inline editor. One of the columns is a drop down list. I think it is setup properly. When the drop down list control loses focus, the cell reverts from the text value to the option value. How do you structure the drop down list to keep the text and not replace the cell with the value?

    function vendorDropDownEditor(container, options) {
      $('<input data-text-field="name" data-value-field="id" data-bind="value:' + options.field + '"/>')
        .appendTo(container)
        .kendoDropDownList({
          dataTextField: "name",
          dataValueField: "id",
          autoBind: false,
          dataSource: [{"id":1,"name":"aaa"},{"id":2,"name":"bbb"},{"id":3,"name":"ccc"},{"id":4,"name":"ddd"},{"id":5,"name":"eee"},{"id":6,"name":"fff"}]
      });
    }

    Any tips on why the drop down leaves the value behind and not the text much appreciated. 


  • Georgi Krustev
    Georgi Krustev avatar

    03 May 2012 (Link to this post)

    Hi Dave,

     
    I will suggest you open a support thread regarding this issue. Thus our support staff will help you to find the best solution for it.

    Kind regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  • Alex
    Alex avatar

    15 Jun 2012 (Link to this post)

    Hi,

    Is there any solution for this? I have the same problem. The cell reverts to the value instead of the text once the selection is made.

    Thanks,

    Alex
  • Michael
    Michael avatar

    20 Jun 2012 (Link to this post)

    Has there been any progress on this issue?  I am having the same problem.
  • Jose
    Jose avatar

    04 Jul 2012 (Link to this post)

    Just wondering if there is an solution for this issue. I’m having the same problem

     Thanks

Read FAQ or see Kendo UI in action!

Launch Demos