Adding class attribute to series

4 posts, 0 answers
  1. Marina
    Marina avatar
    9 posts
    Member since:
    Feb 2015

    Posted 17 Nov 2016 Link to this post

    Hi,

    We are trying to use the Telerik Testing Studio to automate testing.

    We're running into problems testing Kendo UI charts, since there's no way to hook to the series in the chart.

    Is there a way to configure the chart to add classes (or ids or any other usable attributes) to each of the series (and to each of the bars in the series in case of stacked bar chart) ?

    If not, how can we use your tool to inspect your widgets ?

    Thanks in advance

  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1911 posts

    Posted 21 Nov 2016 Link to this post

    Hello Marina,

    Indeed we do not have such option to define class or attributes to be applied to the Chart. What we do is to offer an ability to define visuals. Please refer to the http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart API reference of the Kendo UI Chart to review if some of the available visuals will suit your scenario. 

    Regards,
    Boyan Dimitrov
    Telerik by Progress
    Kendo UI is ready for Visual Studio 2017 RC! Learn more.
  3. Marina
    Marina avatar
    9 posts
    Member since:
    Feb 2015

    Posted 21 Nov 2016 Link to this post

    I don't understand how using visuals help us, as those are rendered into <svg>, <g>, <path>, etc. elements.

    How can your testing studio connect to those, as it uses ids, classes and such to find the elements ?

  4. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1911 posts

    Posted 23 Nov 2016 Link to this post

    Hello Marina,

    Actually the visuals will not help you in this case because it does not affect the rendered html. I am afraid that there is no way to modify the rendered html (adding classes, ids or attributes to the elements). 

    Regards,
    Boyan Dimitrov
    Telerik by Progress
    Kendo UI is ready for Visual Studio 2017 RC! Learn more.
Back to Top