DropdownList.dataItem() does not return undefined

2 posts, 0 answers
  1. Grant
    Grant avatar
    83 posts
    Member since:
    Jul 2016

    Posted 25 Aug Link to this post

    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

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    560 posts

    Posted 29 Aug Link to this post

    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.
Back to Top