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

Svg binding not working on device

1 Answer 44 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Odin
Top achievements
Rank 1
Odin asked on 16 Jan 2015, 07:02 PM
I'm using kendo mobile framework and it's MVVM. I want to use it to bind svg attribute like that

<svg>
...
<path data-bind="attr:{fill:myColor}" ...>
...
</svg>

This code works fine and the attribute is binded in the appbuilder simulator, but it doesn't work on real devices. I've tested it on ios, windows phone and android and it didn't worked at all of them. It could be kendo bug, but I wonder why it works in the simulator only.

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 21 Jan 2015, 02:41 PM
Hello Odin,

Thank you for contacting our support services. I managed to reproduce the described by you behavior on all of the supported by AppBuilder mobile platforms. Unfortunately, this is expected as the data-binding is not supported in svg elements. This is a limitation that comes from Kendo UI. Still, as I am not sure why it is working in the AppBuilder simulator, I will pass it to the Kendo team for further investigation.

I hope this answers your question. Please, let me know if I can be of further assistance.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
Report a bug
Asked by
Odin
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or