DropDownList loses optionLabel when data source is updated to empty array

2 posts, 0 answers
  1. Holger
    Holger avatar
    77 posts
    Member since:
    Nov 2012

    Posted 02 Jan 2015 Link to this post


    I'm experiencing a problem where the DropDownList is losing it's optionLabel when it's data source is updated to an empty array. What I'm missing?

    Demo is available here: http://dojo.telerik.com/@Holger/umEmI

  2. Georgi Krustev
    Georgi Krustev avatar
    3687 posts

    Posted 05 Jan 2015 Link to this post

    Hello Holger,

    Kendo UI DropDownList is designed to show the option label only if the data source has items. That being said, you will need to set the option label text manually if you would like to clear the widget data source. Check the updated Dojo demo.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top