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

DropDownList in Grid Editor completes with value and not text

4 Answers 105 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 01 May 2012, 11:29 PM
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. 


4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 03 May 2012, 08:30 AM
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!
0
Alex
Top achievements
Rank 2
answered on 15 Jun 2012, 03:33 PM
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
0
Michael
Top achievements
Rank 1
answered on 20 Jun 2012, 03:20 PM
Has there been any progress on this issue?  I am having the same problem.
0
Jose
Top achievements
Rank 1
answered on 04 Jul 2012, 06:28 PM

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

 Thanks

Tags
DropDownList
Asked by
Dave
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Alex
Top achievements
Rank 2
Michael
Top achievements
Rank 1
Jose
Top achievements
Rank 1
Share this question
or