AnnotationsProvider - LabelDefinition problem?

2 posts, 1 answers
  1. David
    David avatar
    1 posts
    Member since:
    Jun 2015

    Posted 03 Feb 2016 Link to this post


     I was trying to use the new feature to bind to the ChartView's AnnotationProvider.Source, and one of the requirements I have goes through changing the default display of the Label for the CartesianGridLineAnnotation.

     I have an example project zip @ (and picture) of the problem I'm facing: When I statically define the annotation in the Annotations collection of the ChartView, I have no problems whatsoever to change the LabelDefinition in order to achieve the vertical text and whatever else we need from changing this property.

     When I attempt to change it through styles however, nothing that we "set" on this property takes effect.

    From what I understood, I need to use styles in order to change the generated Annotation controls on the AnnotationProvider through the AnnotationDescriptor.

    I might obviously be overlooking or misunderstanding something.

     Thank you in advance,


  2. Answer
    Dinko avatar
    416 posts

    Posted 08 Feb 2016 Link to this post

    Hi David,

    Thank you for contacting us.

    After we investigated this on our side, we can confirm that there is an issue with the LabelDefinition property of CartesianGridLineAnnotation when you try to set it in style. We have logged it in our feedback portal where you can track its progress. We have updated your Telerik points, for bringing this issue to our attention.

    In addition, we have modified the project provided in your last reply to demonstrate how to workaround the issue with an approach using an attached property. 

    Please, give this approach a try and let us know if it works.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top