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

DropdownList.dataItem() does not return undefined

1 Answer 233 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Grant
Top achievements
Rank 3
Iron
Iron
Veteran
Grant asked on 25 Aug 2017, 07:54 AM

Hi, 

As my title says, the dataItem() method for the dropDownList does not return undefined (when selected item is blank) as the API says. 

API: http://docs.telerik.com/kendo-ui/api/javascript/ui/dropdownlist#methods-dataItem
Demo: https://dojo.telerik.com/AxoTu

I dont know if this an error in the functionality of the widget or an error in the API. 

This threw me off for about 2 hours while I tried to figure out why my dropdown was returning null instead of undefined.

Regards,
Grant

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 29 Aug 2017, 07:13 AM
Hello Grant,

Thank you for bringing our attention to this issue in the DropDownList behaviour. This should be considered a bug in the widget functionality. Here you could find a GitHub item, where you could track the bug status.

As a small token of gratitude for the reported issue, I have updated your Telerik points.

In case you have any other questions, please do not hesitate to contact us.

Regards,
Veselin Tsvetanov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
DropDownList
Asked by
Grant
Top achievements
Rank 3
Iron
Iron
Veteran
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or