Properties not bindable

4 posts, 2 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 27 Mar 2012 Link to this post


    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?

  2. Answer
    Victor avatar
    1349 posts

    Posted 29 Mar 2012 Link to this post

    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.

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Brandon
    Brandon avatar
    4 posts
    Member since:
    Jun 2012

    Posted 22 May 2012 Link to this post


    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.

  5. Answer
    Victor avatar
    1349 posts

    Posted 22 May 2012 Link to this post

    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,
    the Telerik team

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

Back to Top