Programmically Control Label Connectors

3 posts, 0 answers
  1. Mike
    Mike avatar
    5 posts
    Member since:
    Mar 2013

    Posted 01 May 2014 Link to this post

    Is there a way to control the label connectors through binding or otherwise? It seems the datacontext for the connector is the same bound object as the chart and not the point. (RadCartesianChart) I'd like to selectively hide labels with a datatemplate but the connectors remain.

  2. Mike
    Mike avatar
    5 posts
    Member since:
    Mar 2013

    Posted 01 May 2014 in reply to Mike Link to this post

    Another approach could be to bind to the showlabels on the line series but this isn't a dependency property.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 02 May 2014 Link to this post

    Hi Mike,

    In RadCartesianChart the connectors for a single series are drawn by a single Path, so you can either hide all of them or show them all. You should be able to achieve this with the LabelConnectorsSettings property, or as you mentioned the ShowLabels property. I just verified that the ShowLabels is a dependency property defined in the base ChartSeries class. Let us know if we can be of further help.

    Regards,
    Petar Marchev
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top