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

Strange behavior of the "data-option-label" attribute

5 Answers 171 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Nik
Top achievements
Rank 1
Nik asked on 18 Jul 2012, 09:54 AM
Hello,
I'm using MVVM approach in DropDownList configure. Everything works fine but I unexpectedly stuck on the "data-option-label" attribute value == "[ None ]". This value causes error "SyntaxError: Unexpected token N ". Using '[ .. ]' instead of '( .. )' is very important for our designer, so.. please take a look at jsFiddle example. Thank you.

5 Answers, 1 is accepted

Sort by
0
Nicholas
Top achievements
Rank 1
answered on 03 Feb 2014, 09:22 PM
Bringing this to the top as I just ran into the exact same problem with the Q3 2013 release. It seems this has never been fixed?
0
Kiril Nikolov
Telerik team
answered on 06 Feb 2014, 03:46 PM
Hi Nicholas,

I have managed to reproduce this in the latest version of the Kendo UI framework. We will take a deeper look into this and will get back to you with more information.

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kiril Nikolov
Telerik team
answered on 07 Feb 2014, 09:26 AM
Hello Nicholas,

I have added this issue to our internal bug track, so we will take a deeper look. In the mean time here is a workaround for it:

http://jsbin.com/taloy/1/edit

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Nicholas
Top achievements
Rank 1
answered on 10 Feb 2014, 06:41 PM
Thanks Kiril, that worked.
0
Kiril Nikolov
Telerik team
answered on 11 Feb 2014, 09:14 AM
Hello Nik,

I am happy to hear that the provided solutions helped. We will take a look at the issue, and a patch will be available with a later build.

Regards,
Kiril Nikolov
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
Nik
Top achievements
Rank 1
Answers by
Nicholas
Top achievements
Rank 1
Kiril Nikolov
Telerik team
Share this question
or