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

DropDownList displays Index instead of display text

1 Answer 132 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 05 May 2015, 03:04 PM

My Goal:

On Edit - display display text associated with DropDownList ID selected in lookup table.

Problem:

When creating a record, the DropDownList will lookup the value and display the associated text. Because the field is used to store only the "index" or ID of the associated record, when editing, only the integer index is displayed. I would like the text to be displayed as if it was just selected when the edit window is opened.

I have just begun working with Kendo and just not sure of the syntax.

 Thank you!

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 07 May 2015, 10:31 AM
Hi Simon,

I am not sure I understand the scenario very well. Are you using the DropDownList inside a Grid? If so, I would recommend using a ForeignKey column, as shown in this example. Please, share more details if that is not the case. Any code snippets would also be of use.

Regards,
Alexander Popov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
DropDownList
Asked by
Simon
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or