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

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

1 Answer 141 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 11 Jun 2013, 01:04 PM
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.

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 13 Jun 2013, 07:13 AM
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!
Tags
DropDownList
Asked by
Ryan
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or