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

DropDownList dataItem value is undefined.

0 Answers 128 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Andrej
Top achievements
Rank 1
Andrej asked on 20 Nov 2012, 09:44 AM
var dd = elem.kendoDropDownList({
                            dataTextField: "Name",
                            dataValueField: "ID",
                            value: attr.value,
                            select: function(e) {
                                var item = this.dataItem(e.item.index());
                                console.log(item.value); // UNDEFINED
                            },
                            dataSource: source
                        }).data("kendoDropDownList");

No answers yet. Maybe you can help?

Tags
DropDownList
Asked by
Andrej
Top achievements
Rank 1
Share this question
or