Converting standard select element to kendoDropDownList removes additional properties from option such as data-

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    60 posts
    Member since:
    Mar 2012

    Posted 11 Jun 2013 Link to this post

    I have additional data that I would have liked to be included in the option tag and then read after the change event. However, any data- attribute I add to the option is removed after I convert it to a kendoDropDownList. I do not wish to set the datasource and a custom template. I simply want the converted select element to retain its original properties.
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3724 posts

    Posted 13 Jun 2013 Link to this post

    Hello Ryan,

     
    Currently, the widget is not designed to persist data attached with data attributes. In order to acheive your goal you will need to define dataSource with the additional data in every data item. You can share your thoughts on our Kendo UserVoice page. Thus more people cast their vote for it.

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