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

Properties not bindable

3 Answers 80 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ManniAT
Top achievements
Rank 2
ManniAT asked on 27 Mar 2012, 09:44 PM
Hi,

I tried to bind several elements in a RadCartesianChart.
I failed with LineSeries.DisplayName (not really a problem).
But further Axis bindings failed:
DateTimeContinuousAxis - MinValue, MaxValue and MajorTicks are the Properties I need - and binding these failed.

But surprisingly the LinearAxis MinValue and MaxValue are working.

I need to set these Properties since my Modeldata has different (user selectable) values.
This means that once I get (for an example) 10 Hours of data.
In this case I want an offset of 2 Hours in the XAxis.
In another scenario I get 30 Days an need an offset of 2 Days.
My Data calculates a Minimum and a Maximum date which I want to bind.
Further it also calculates the number of major Ticks as well as the LabelInterval to enhance readability.

By the way - I share the code (and the XAML) with a SL5 Application where these bindings are also not available.

Is there are reason why some kind of axes support binding an some do not?

Manfred

3 Answers, 1 is accepted

Sort by
0
Accepted
Victor
Telerik team
answered on 29 Mar 2012, 03:46 PM
Hello Manfred,

Thank you for pointing this out. Currently there is no reason that these properties are not of type DependencyProperty (this is why the binding fails currently). They will be modified to be dependency properties for the next internal build which will be available next week.

Initially, while designing the chart, we did application startup performance tests and it turned out that the dependency property metadata registration can have a noticeable impact. With this in mind we decided to implement most properties as plain CLR properties. After releasing the chart however, users started asking why some properties can not be bound to and we decided to change them to dependency properties whenever someone asked about a particular property.

Please write again if you have more feedback to share.

Regards,
Victor
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Brandon
Top achievements
Rank 1
answered on 22 May 2012, 06:10 AM
Victor,

You mention that the bindable properties will be available next week internally on Mar 29th, is there any plan to have these in a public release? I to need the functionality Manni describes.

Thanks,
Brandon
0
Accepted
Victor
Telerik team
answered on 22 May 2012, 08:31 AM
Hello Brandon,

Thanks for the question.
The updated DateTimeContinuousAxis is available in the latest internal build. Please download it from your account and give it at try.

All the best,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
ManniAT
Top achievements
Rank 2
Answers by
Victor
Telerik team
Brandon
Top achievements
Rank 1
Share this question
or