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

Kendo Drop Down: data is undefined

1 Answer 526 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Kai
Top achievements
Rank 1
Kai asked on 07 Aug 2012, 09:41 PM
Kendo DropDown Example

I have a Kendo DropDownList inside of a kendo Panel inside of Form Tags. The problem is I can't select the Drop Downlist. I keep getting a "data undefined error" Data Undefined. The thing I'm not understanding the most is that I've used this code before on another page with the exact same structure and I can select the drop downs fine. Thanks

1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 10 Aug 2012, 05:30 PM
Hello Kai,

Thank you for providing the sample project as well as the screen shot.

The problem is caused by the fact that the variable $ClientCountrySearch contains an identifier (#cboClientCountrySearch ), not a jQuery selected object and by a syntax mistake - right spelling is data.('kendoDropDownList').
The following code will return the client drop down list object.
$($ClientCountrySearch).data('kendoDropDownList')

All the best,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
Kai
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or