DropDownList in Grid Editor completes with value and not text

5 posts, 0 answers
  1. Dave
    Dave avatar
    2 posts
    Member since:
    May 2012

    Posted 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. 


  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 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!
  3. Alex
    Alex avatar
    27 posts
    Member since:
    Oct 2011

    Posted 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
  4. Michael
    Michael avatar
    4 posts
    Member since:
    Mar 2011

    Posted 20 Jun 2012 Link to this post

    Has there been any progress on this issue?  I am having the same problem.
  5. Jose
    Jose avatar
    13 posts
    Member since:
    May 2009

    Posted 04 Jul 2012 Link to this post

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

     Thanks

Back to Top