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

AnnotationsProvider - LabelDefinition problem?

1 Answer 121 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 03 Feb 2016, 03:39 PM

Hi,

 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 @ https://www.dropbox.com/s/cj06tc8yhd7x0v5/AnnotationTypes-modified.zip?dl=0 (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,

David

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 08 Feb 2016, 03:22 PM
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.

Regards,
Dinko
Telerik
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
Tags
ChartView
Asked by
David
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or